-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathnext-env.d.ts
78 lines (75 loc) · 1.46 KB
/
next-env.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
71
72
73
74
75
76
77
78
/// <reference types="next" />
/// <reference types="next/types/global" />
interface FortyTwoCursusData {
id: number
name: string
slug: string
}
interface FortyTwoCursus {
cursus_id: number
grade: string | null
level: number
cursus: FortyTwoCursusData
}
interface FortyTwoUser {
email: string
first_name: string
last_name: string
image_url: string
'staff?': boolean
cursus_users: FortyTwoCursus[]
}
interface FortyTwo {
getUser(login: string): Promise<FortyTwoUser>
}
interface NextApiCustomRequest extends NextApiRequest {
fortyTwo: FortyTwo
}
interface FortyTwoCursusData {
id: number
name: string
slug: string
}
interface FortyTwoCursus {
cursus_id: number
grade: string | null
level: number
cursus: FortyTwoCursusData
}
interface FortyTwoUser {
email: string
first_name: string
last_name: string
image_url: string
'staff?': boolean
cursus_users: FortyTwoCursus[]
}
interface QueryData {
login: string
cursus: string
email: string
leet_logo: string
forty_two_network_logo: string
dark: string
}
interface CustomRequest extends IncomingMessage {
fortyTwo: FortyTwo
query: QueryData
}
interface UserProfileCursus {
grade: string | null
name: string
level: number
}
interface UserProfile {
login: string
fullName: string
email: string | boolean
image: string
isPisciner: boolean
isStaff: boolean
cursus: UserProfileCursus | boolean
leetLogo: boolean
fortyTwoLogo: boolean
isDark: boolean
}