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