Skip to content

Commit

Permalink
fix: nuxt i18n type inference (#1628)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobbieGoede committed Nov 4, 2023
1 parent 576e3b0 commit 9302664
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/vue-i18n-bridge/src/vue.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1228,7 +1228,9 @@ declare module '@vue/runtime-core' {
key: Key | ResourceKeys
): LocaleMessageValue<VueMessageType> | {}
}
}

declare module 'vue' {
export interface GlobalComponents {
['i18n-t']: typeof Translation
['i18n-d']: typeof DatetimeFormat
Expand Down
2 changes: 2 additions & 0 deletions packages/vue-i18n/src/vue.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1228,7 +1228,9 @@ declare module '@vue/runtime-core' {
key: Key | ResourceKeys
): LocaleMessageValue<VueMessageType> | {}
}
}

declare module 'vue' {
export interface GlobalComponents {
['i18n-t']: typeof Translation
['i18n-d']: typeof DatetimeFormat
Expand Down

0 comments on commit 9302664

Please sign in to comment.