File tree 3 files changed +17
-22
lines changed
3 files changed +17
-22
lines changed Original file line number Diff line number Diff line change 1
1
/**
2
2
* @file env.d.ts
3
3
* @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
+ */
9
6
10
7
namespace NodeJS {
11
8
interface ProcessEnv {
12
9
readonly NODE_ENV : 'development' | 'production' | 'test' ;
13
10
}
14
11
}
15
12
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 19
19
"forceConsistentCasingInFileNames" : true ,
20
20
21
21
"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
+ ],
23
30
"plugins" : [],
24
31
"paths" : {
25
32
"@/*" : [" ./src/*" ]
You can’t perform that action at this time.
0 commit comments