@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'| Export | Kind | Signature |
|---|---|---|
flattenKeys | function | (obj: Record<string, unknown>, prefix?: string) => string[] |
formatKeyProperty | function | (key: string) => string |
generateTypes | function | (options: GeneratorOptions) => Promise<string> |
GeneratorOptions | interface | 3 members |
getTypesString | function | (options: GeneratorOptions) => Promise<string> |
I18nTypesPlugin | const | import("unplugin").UnpluginInstance<GeneratorOptions, boolean> |
isPlainTranslationObject | function | (value: unknown) => value is Record<string, unknown> |
GeneratorOptions — 3 members
| Member | Type |
|---|---|
outputFile? | string | undefined |
srcDir | string |
translationDir | string |
ts
import { /* … */ } from '@i18n-micro/types-generator/nuxt'| Export | Kind | Signature |
|---|---|---|
default | value | import("@nuxt/schema").NuxtModule<I18nTypesGeneratorOptions, I18nTypesGeneratorOptions, false> |
I18nTypesGeneratorOptions | interface | 1 members |
I18nTypesGeneratorOptions — 1 members
| Member | Type |
|---|---|
translationDir? | string | undefined |
Back to all packages · Integration guides