forked from corona-school/user-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreact-app-env.d.ts
More file actions
76 lines (64 loc) · 1.59 KB
/
react-app-env.d.ts
File metadata and controls
76 lines (64 loc) · 1.59 KB
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
69
70
71
72
73
74
75
76
/// <reference types="node" />
/// <reference types="react" />
/// <reference types="react-dom" />
declare namespace NodeJS {
interface LernFairEnv {
// App version dynamically fetched by the environment
readonly REACT_APP_VERSION: string
// Pointing to a running instance of corona-school/backend
readonly REACT_APP_BACKEND_URL: string
// Matomo API Key
readonly REACT_APP_MATOMO_URL: string
readonly REACT_APP_DISABLE_MATOMO?: "true"
// Unsplash API Key
readonly REACT_APP_UNSPLASH: string
// URL for student screenings
readonly REACT_APP_SCREENING_URL: string
}
interface ProcessEnv extends LernFairEnv {
readonly NODE_ENV: 'development' | 'production' | 'test'
readonly PUBLIC_URL: string
}
}
declare interface Window {
readonly liveConfig: {
readonly RUNTIME_BACKEND_URL: string
readonly RUNTIME_DISABLE_MATOMO?: "true" | "false"
}
}
declare module '*.avif' {
const src: string
export default src
}
declare module '*.bmp' {
const src: string
export default src
}
declare module '*.gif' {
const src: string
export default src
}
declare module '*.jpg' {
const src: string
export default src
}
declare module '*.jpeg' {
const src: string
export default src
}
declare module '*.png' {
const src: string
export default src
}
declare module '*.webp' {
const src: string
export default src
}
declare module '*.svg' {
import * as React from 'react'
export const ReactComponent: React.FunctionComponent<
React.SVGProps<SVGSVGElement> & { title?: string }
>
const src: string
export default ReactComponent
}