File tree Expand file tree Collapse file tree 3 files changed +17
-22
lines changed Expand file tree Collapse file tree 3 files changed +17
-22
lines changed Original file line number Diff line number Diff line change 11/**
22 * @file env.d.ts
33 * @ref https://nodejs.org/api/process.html#processenv
4- */
5-
6- /// <reference types="vite/client" />
7- /// <reference types="vitest/globals" />
8- /// <reference types="unplugin-vue-router/client" />
4+ * @ref https://vitejs.dev/guide/env-and-mode.html#intellisense-for-typescript
5+ */
96
107namespace NodeJS {
118 interface ProcessEnv {
129 readonly NODE_ENV : 'development' | 'production' | 'test' ;
1310 }
1411}
1512
13+ interface ImportMetaEnv {
14+ readonly VITE_API_URL : string ;
15+ }
16+
17+ interface ImportMeta {
18+ readonly env : ImportMetaEnv ;
19+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1919 "forceConsistentCasingInFileNames" : true ,
2020
2121 "lib" : [" ES2023" , " DOM" ],
22- "types" : [" node" ],
22+ "types" : [
23+ " node" ,
24+ // vite
25+ " vite/client" ,
26+ " vitest/globals" ,
27+ // vue
28+ " unplugin-vue-router/client"
29+ ],
2330 "plugins" : [],
2431 "paths" : {
2532 "@/*" : [" ./src/*" ]
You can’t perform that action at this time.
0 commit comments