Skip to content

@i18n-micro/types-generator ​

9 exports across 2 entry points. Generated from the API snapshot that pnpm run api:surface checks against the TypeScript sources.

@i18n-micro/types-generator ​

ts
import { /* … */ } from '@i18n-micro/types-generator'
ExportKindSignature
flattenKeysfunction(obj: Record<string, unknown>, prefix?: string) => string[]
formatKeyPropertyfunction(key: string) => string
generateTypesfunction(options: GeneratorOptions) => Promise<string>
GeneratorOptionsinterface3 members
getTypesStringfunction(options: GeneratorOptions) => Promise<string>
I18nTypesPluginconstimport("unplugin").UnpluginInstance<GeneratorOptions, boolean>
isPlainTranslationObjectfunction(value: unknown) => value is Record<string, unknown>
GeneratorOptions — 3 members
MemberType
outputFile?string | undefined
srcDirstring
translationDirstring
## `@i18n-micro/types-generator/nuxt`
ts
import { /* … */ } from '@i18n-micro/types-generator/nuxt'
ExportKindSignature
defaultvalueimport("@nuxt/schema").NuxtModule<I18nTypesGeneratorOptions, I18nTypesGeneratorOptions, false>
I18nTypesGeneratorOptionsinterface1 members
I18nTypesGeneratorOptions — 1 members
MemberType
translationDir?string | undefined

Back to all packages · Integration guides

Released under the MIT License.