-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.ts
50 lines (43 loc) · 773 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
export interface Root {
user: User;
}
export interface User {
__typename: string;
avatarUrl: string;
name: string;
email: string;
login: string;
repositories: Repositories;
followers: Followers;
following: Following;
}
export interface Repositories {
__typename: string;
pageInfo: PageInfo;
totalCount: number;
edges: Edge[];
}
export interface PageInfo {
__typename: string;
endCursor: string;
startCursor: string;
hasNextPage: boolean;
}
export interface Edge {
__typename: string;
node: Node;
}
export interface Node {
__typename: string;
id: string;
name: string;
viewerHasStarred: boolean;
}
export interface Followers {
__typename: string;
totalCount: number;
}
export interface Following {
__typename: string;
totalCount: number;
}