File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 11VITE_API_GATEWAY = api/gateway
22VITE_WS_GATEWAY = ws/gateway
3+ VITE_DEBUG_REQUESTS = false
Original file line number Diff line number Diff line change 77
88/// <reference types="vite-plugin-svgr/client" />
99/// <reference types="vite/client" />
10+
11+ /* Don't know why but seem that TypeScript merge definitions of these two interfaces with existing ones.
12+ * https://vitejs.dev/guide/env-and-mode#intellisense-for-typescript
13+ */
14+ import { UrlString } from '@gridsuite/commons-ui' ;
15+
16+ interface ImportMetaEnv {
17+ /* From @gridsuite/commons-ui */
18+ readonly VITE_API_GATEWAY : UrlString ;
19+ readonly VITE_WS_GATEWAY : UrlString ;
20+ // readonly VITE_DEBUG_REQUESTS?: boolean;
21+ readonly VITE_DEBUG_HOOK_RENDER ?: boolean ;
22+ /* From this app */
23+ readonly VITE_DEBUG_REQUESTS : boolean ;
24+ }
25+
26+ interface ImportMeta {
27+ readonly env : ImportMetaEnv ;
28+ }
You can’t perform that action at this time.
0 commit comments