File tree 3 files changed +16
-22
lines changed
3 files changed +16
-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
-
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
}
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 18
18
"forceConsistentCasingInFileNames" : true ,
19
19
20
20
"lib" : [" ES2023" , " DOM" ],
21
- "types" : [" node" ],
21
+ "types" : [
22
+ " node" ,
23
+ // vite
24
+ " vite/client" ,
25
+ " vitest/globals" ,
26
+ ],
22
27
"plugins" : [],
23
28
"paths" : {
24
29
"@/*" : [" ./src/*" ]
You can’t perform that action at this time.
0 commit comments