-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathenv.d.ts
More file actions
27 lines (22 loc) · 736 Bytes
/
Copy pathenv.d.ts
File metadata and controls
27 lines (22 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// CSS-only packages (no bundled types); needed since TS now checks
// side-effect imports (`noUncheckedSideEffectImports`).
declare module '@fontsource/*';
declare module '@fontsource-variable/*';
declare namespace NodeJS {
/** for astro.config.mjs */
interface ProcessEnv {
readonly NODE_ENV: 'development' | 'production' | 'test';
readonly SITE_URL: string;
/** Optional in .env file but always defined in type. Default: false. */
readonly PREVIEW_MODE: boolean;
}
}
// same type repeated
/** for import.meta.env for the rest of the code */
interface ImportMetaEnv {
// NODE_ENV, SITE_URL... included by default
readonly PREVIEW_MODE: boolean;
}
interface ImportMeta {
readonly env: ImportMetaEnv;
}