forked from howtographql/howtographql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.ts
54 lines (49 loc) · 906 Bytes
/
types.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
export interface RelayConnection<T> {
edges: Array<RelayEdge<T>>
}
interface RelayEdge<T> {
node: T
}
export interface MarkdownRemark {
html: string
excerpt: string
fields: {
slug: string
}
frontmatter: {
title: string
videoId?: string
duration?: number
videoAuthor?: string
question: string
answers: string[]
correctAnswer: number
description?: string
pageTitle?: string
}
}
export interface Step {
title: string
link: string
duration?: number
read?: boolean
description?: string
}
export interface Stack {
title: string
key: string
images: string[]
authorName: string
content: {
title: string
description: string
}
type: StackType
color1?: string
color2?: string
beginnersChoice?: boolean
comingSoon?: boolean
darkenGreyLogo?: boolean
lightenLogo?: boolean
}
type StackType = 'frontend' | 'backend'