Skip to content

Commit

Permalink
feat: export v-t directive type (#1511)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon authored Aug 30, 2023
1 parent 257ef50 commit 2dc8fee
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/vue-i18n-core/src/directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import type { VueI18nInternal } from './legacy'
import type { Composer } from './composer'
import type { Locale, TranslateOptions, NamedValue } from '@intlify/core-base'

type VTDirectiveValue = {
export type VTDirectiveValue = {
path: string
locale?: Locale
args?: NamedValue
Expand Down
6 changes: 5 additions & 1 deletion packages/vue-i18n-core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,11 @@ export {
BaseFormatProps,
ComponentI18nScope
} from './components'
export { vTDirective, TranslationDirective } from './directive'
export {
vTDirective,
VTDirectiveValue,
TranslationDirective
} from './directive'
export { I18nPluginOptions } from './plugin'
export { VERSION } from './misc'
export { Disposer } from './types'
Expand Down
1 change: 1 addition & 0 deletions packages/vue-i18n/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ export {
} from '../../vue-i18n-core/src/components'
export {
vTDirective,
VTDirectiveValue,
TranslationDirective
} from '../../vue-i18n-core/src/directive'
export { I18nPluginOptions } from '../../vue-i18n-core/src/plugin'
Expand Down
1 change: 1 addition & 0 deletions packages/vue-i18n/src/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ export {
} from '../../vue-i18n-core/src/components'
export {
vTDirective,
VTDirectiveValue,
TranslationDirective
} from '../../vue-i18n-core/src/directive'
export { I18nPluginOptions } from '../../vue-i18n-core/src/plugin'
Expand Down

0 comments on commit 2dc8fee

Please sign in to comment.