-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom.d.ts
68 lines (54 loc) · 1.49 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
declare module '*.ico' {
const content: string
export default content
}
declare module '*.svg' {
const content: string
export default content
}
declare module '*.svg?stroke=#992f00' {
const content: string
export default content
}
declare module '*.svg?stroke=#cccece' {
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
canonicalUrl: string
contactEmail: string
clientVersion: string
// This is a stringified version of `firebaseConfig` from
// https://console.firebase.google.com/project/<project>/settings/general
firebase: string
environment: string
partnerUrls: string
sentryDsn: string
}
type GetProps<T> = T extends React.ComponentType<infer Props> ? Props : never
type Mutable<T extends Record<string, unknown>> = {-readonly [K in keyof T]: T[K]}
// TODO(cyrille): Find a way to statically restrict font families and weights.