Skip to content

Commit 9302664

Browse files
authored
fix: nuxt i18n type inference (#1628)
1 parent 576e3b0 commit 9302664

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

packages/vue-i18n-bridge/src/vue.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,7 +1228,9 @@ declare module '@vue/runtime-core' {
12281228
key: Key | ResourceKeys
12291229
): LocaleMessageValue<VueMessageType> | {}
12301230
}
1231+
}
12311232

1233+
declare module 'vue' {
12321234
export interface GlobalComponents {
12331235
['i18n-t']: typeof Translation
12341236
['i18n-d']: typeof DatetimeFormat

packages/vue-i18n/src/vue.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,7 +1228,9 @@ declare module '@vue/runtime-core' {
12281228
key: Key | ResourceKeys
12291229
): LocaleMessageValue<VueMessageType> | {}
12301230
}
1231+
}
12311232

1233+
declare module 'vue' {
12321234
export interface GlobalComponents {
12331235
['i18n-t']: typeof Translation
12341236
['i18n-d']: typeof DatetimeFormat

0 commit comments

Comments
 (0)