Skip to content

Commit 2dc8fee

Browse files
authored
feat: export v-t directive type (#1511)
1 parent 257ef50 commit 2dc8fee

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

packages/vue-i18n-core/src/directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import type { VueI18nInternal } from './legacy'
2020
import type { Composer } from './composer'
2121
import type { Locale, TranslateOptions, NamedValue } from '@intlify/core-base'
2222

23-
type VTDirectiveValue = {
23+
export type VTDirectiveValue = {
2424
path: string
2525
locale?: Locale
2626
args?: NamedValue

packages/vue-i18n-core/src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,11 @@ export {
102102
BaseFormatProps,
103103
ComponentI18nScope
104104
} from './components'
105-
export { vTDirective, TranslationDirective } from './directive'
105+
export {
106+
vTDirective,
107+
VTDirectiveValue,
108+
TranslationDirective
109+
} from './directive'
106110
export { I18nPluginOptions } from './plugin'
107111
export { VERSION } from './misc'
108112
export { Disposer } from './types'

packages/vue-i18n/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ export {
127127
} from '../../vue-i18n-core/src/components'
128128
export {
129129
vTDirective,
130+
VTDirectiveValue,
130131
TranslationDirective
131132
} from '../../vue-i18n-core/src/directive'
132133
export { I18nPluginOptions } from '../../vue-i18n-core/src/plugin'

packages/vue-i18n/src/runtime.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ export {
124124
} from '../../vue-i18n-core/src/components'
125125
export {
126126
vTDirective,
127+
VTDirectiveValue,
127128
TranslationDirective
128129
} from '../../vue-i18n-core/src/directive'
129130
export { I18nPluginOptions } from '../../vue-i18n-core/src/plugin'

0 commit comments

Comments
 (0)