-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.d.ts
70 lines (59 loc) · 1.11 KB
/
types.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
69
70
// Images
declare module '*.svg' {
const content: any
export default content
}
declare module '*.png' {
const content: any
export default content
}
declare module '*.jpg' {
const content: any
export default content
}
declare module '*.jpeg' {
const content: any
export default content
}
declare module '*.webp' {
const content: any
export default content
}
declare module '*.mp4' {
const content: any
export default content
}
// YAML data
declare module '*.yaml' {
const data: any
export default data
}
declare module '*.yml' {
const data: any
export default data
}
type B12Context = {
trackingId: string
snowplowAppId: string
client_team_member: object
experiments?: {
[key: string]: Experiment
}
}
type Experiment = {
slug: string
active: boolean
created_at: string
started_at: string
ended_at: string | null
group: {
slug: string
control: boolean
winner: boolean
data: object
}
}
declare const b12Context: B12Context
interface Window {
readonly b12Context: B12Context
}