-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcustom.d.ts
51 lines (42 loc) · 1.13 KB
/
custom.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
declare module '*.svg' {
const content: string
export default content
}
declare module '*.png' {
const content: string
export default content
}
declare module '*.jpg' {
const content: string
export default content
}
declare module '*.gif' {
const content: string
export default content
}
declare module '*.txt' {
const content: string
export default content
}
interface RadiumCSSProperties extends React.CSSProperties {
':active'?: React.CSSProperties
':hover'?: React.CSSProperties
':focus'?: React.CSSProperties
}
type ReactStylableElement = React.ReactElement<{style?: RadiumCSSProperties}>
declare const colors: typeof import('./cfg/colors.json')
declare const config: {
amplitudeToken: string
clientVersion: string
diseaseName: string
environment: string
facebookSSOAppId: string
followUpMail: string
isSendingSmsAvailable: boolean
mailjetProxyUrl: string
numDaysContagious: number
numDaysContagiousBeforeSymptoms: number
sentryDsn: string
}
type GetProps<T> = T extends React.ComponentType<infer Props> ? Props : never
// TODO(cyrille): Find a way to statically restrict font families and weights.