Skip to content

Commit a38dde5

Browse files
committed
Fix: [Client] グローバルコンポーネントの型定義を修正
"@vue/runtime-core" ではなく "vue" の型を拡張しないとすべての型が壊れてしまう ref: nuxt/nuxt#28542
1 parent 3e584d9 commit a38dde5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

client/src/vite-env.d.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ declare module '*.vue' {
1212

1313
// **** ライブラリの型定義 *****
1414

15-
// グローバルコンポーネント
16-
declare module '@vue/runtime-core' {
15+
// グローバルコンポーネントの型定義
16+
// "@vue/runtime-core" ではなく "vue" の型を拡張しないとすべての型が壊れてしまう
17+
// ref: https://github.com/nuxt/nuxt/pull/28542
18+
declare module 'vue' {
1719
export interface GlobalComponents {
1820
Icon: typeof Icon;
1921
}

0 commit comments

Comments
 (0)