File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ export default defineConfig({
5454```
5555
5656::: tip 注意
57- TypeScript を使用する場合、型チェックと自動補完を利用するには ` env.d.ts ` または ` vite-env.d.ts ` ファイルに型定義を追加してください。
57+ TypeScript を使用する場合、型チェックと自動補完を利用するには ` vite-env.d.ts ` ファイルに型定義を追加してください。
5858
5959例:
6060
Original file line number Diff line number Diff line change @@ -62,9 +62,9 @@ if (import.meta.hot) {
6262
6363## TypeScript の IntelliSense
6464
65- Vite は ` import .meta.hot` の型定義を [` vite/client.d.ts` ](https://github.com/vitejs/vite/blob/main/packages/vite/client.d.ts) で提供しています。` src` ディレクトリーに ` env.d.ts` を作成することで、TypeScript が型定義を読み込むようになります:
65+ Vite は ` import .meta.hot` の型定義を [` vite/client.d.ts` ](https://github.com/vitejs/vite/blob/main/packages/vite/client.d.ts) で提供しています。` src` ディレクトリーに ` vite- env.d.ts` を作成することで、TypeScript が型定義を読み込むようになります:
6666
67- ` ` ` ts
67+ ` ` ` ts [vite-env.d.ts]
6868// / <reference types="vite/client" />
6969` ` `
7070
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ Vite はデフォルトでは Node.js の API を提供します。Vite でク
153153 export default content
154154 }
155155 ```
156- - ` vite/client ` への参照を含むファイル:
156+ - ` vite/client ` への参照を含むファイル(通常は ` vite-env.d.ts ` ) :
157157 ``` ts
158158 // / <reference types="./vite-env-override.d.ts" />
159159 // / <reference types="vite/client" />
You can’t perform that action at this time.
0 commit comments