-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenv.d.ts
68 lines (64 loc) · 1.51 KB
/
env.d.ts
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// Auto-generated with "generateEnvDeclaration" script
/* eslint-disable */
declare namespace NodeJS {
interface ProcessEnv {
/**
* Dist: `development`
* {@link [Local Env Dist](.env.development)}
*/
NODE_ENV?: string
/**
* Dist: `your_secret`
* {@link [Local Env Dist](.env.development)}
*/
JWT_SECRET?: string
/**
* Dist: `3001`
* {@link [Local Env Dist](.env.development)}
*/
PORT?: string
/**
* Dist: `mongodb://your_mongo_url`
* {@link [Local Env Dist](.env.development)}
*/
MONGO_URL?: string
/**
* Dist: `your_brevo_api_key`
* {@link [Local Env Dist](.env.development)}
*/
BREVO_API_KEY?: string
/**
* Dist: `your_matomo_url`
* {@link [Local Env Dist](.env.development)}
*/
MATOMO_URL?: string
/**
* Dist: `your_matomo_token`
* {@link [Local Env Dist](.env.development)}
*/
MATOMO_TOKEN?: string
}
}
declare type ProcessEnvCustomKeys =
| 'NODE_ENV'
| 'JWT_SECRET'
| 'PORT'
| 'MONGO_URL'
| 'BREVO_API_KEY'
| 'MATOMO_URL'
| 'MATOMO_TOKEN'
type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (
k: infer I
) => void
? I
: never
type LastOf<T> =
UnionToIntersection<T extends any ? () => T : never> extends () => infer R
? R
: never
type Push<T extends any[], V> = [...T, V]
type TuplifyUnion<
T,
L = LastOf<T>,
N = [T] extends [never] ? true : false,
> = true extends N ? [] : Push<TuplifyUnion<Exclude<T, L>>, L>