1+
2+ // 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑
3+ // 🛑 THIS IS AN AUTOGENERATED FILE - DO NOT EDIT DIRECTLY 🛑
4+ // 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑 🛑
5+
6+ /* eslint-disable */
7+ export type CoercedEnvSchema = {
8+ /**
9+ * **REQUIRED_ITEM**
10+ * example of a required item, remove the value to see error state
11+ * 
12+ */
13+ readonly REQUIRED_ITEM : string ;
14+
15+ /**
16+ * **APP_ENV**
17+ * 
18+ */
19+ readonly APP_ENV : "development" | "preview" | "production" | "test" ;
20+
21+ /**
22+ * **PUBLIC_FOO**
23+ * 
24+ */
25+ readonly PUBLIC_FOO : string ;
26+
27+ /**
28+ * **VITE_PUBLIC_FOO**
29+ * 
30+ */
31+ readonly VITE_PUBLIC_FOO : string ;
32+
33+ /**
34+ * **SECRET_FOO** 🔐 _sensitive_
35+ * 
36+ */
37+ readonly SECRET_FOO : string ;
38+
39+ /**
40+ * **VITE_ENV_SPECIFIC_ITEM**
41+ * 
42+ */
43+ readonly VITE_ENV_SPECIFIC_ITEM : string ;
44+
45+ /**
46+ * **ENV_SPECIFIC_ITEM**
47+ * 
48+ */
49+ readonly ENV_SPECIFIC_ITEM : string ;
50+
51+ /**
52+ * **ITEM1**
53+ * 
54+ */
55+ readonly ITEM1 ?: string ;
56+
57+ /**
58+ * **VITE_ITEM1**
59+ * 
60+ */
61+ readonly VITE_ITEM1 ?: string ;
62+
63+ } ;
64+
65+
66+ declare module 'varlock/env' {
67+ export interface TypedEnvSchema extends CoercedEnvSchema { }
68+ export interface PublicTypedEnvSchema extends Pick < CoercedEnvSchema , 'REQUIRED_ITEM' | 'APP_ENV' | 'PUBLIC_FOO' | 'VITE_PUBLIC_FOO' | 'VITE_ENV_SPECIFIC_ITEM' | 'ENV_SPECIFIC_ITEM' | 'ITEM1' | 'VITE_ITEM1' > { }
69+ }
70+
71+
72+ export type EnvSchemaAsStrings = {
73+ [ Property in keyof CoercedEnvSchema ] :
74+ CoercedEnvSchema [ Property ] extends string ? CoercedEnvSchema [ Property ]
75+ : ( CoercedEnvSchema [ Property ] extends boolean ? ( 'true' | 'false' ) : string )
76+ } ;
77+
78+ declare global {
79+
80+ // add types for global import.meta.env
81+ interface ImportMetaEnv extends EnvSchemaAsStrings { }
82+ interface ImportMeta {
83+ readonly env : ImportMetaEnv ;
84+ }
85+
86+ // add types for global process.env
87+ namespace NodeJS {
88+ interface ProcessEnv extends EnvSchemaAsStrings { }
89+ }
90+ }
0 commit comments