-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.d.ts
46 lines (42 loc) · 828 Bytes
/
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
export type PrimaryLanguage = {
color: string;
id: string;
name: string;
};
export type Repository = {
description: string;
forkCount: number;
id?: number;
name: string;
primaryLanguage: PrimaryLanguage;
stargazerCount: number;
url: string;
};
type DataProps = {
viewer: {
login: string;
repositories: {
first: number;
privacy: string;
orderBy: { field: string; direction: string };
nodes: {
[x: string]: any;
id: string;
name: string;
description: string;
url: string;
primaryLanguage: PrimaryLanguage;
forkCount: number;
stargazerCount: number;
};
};
};
};
export type ProjectsProps = {
data: Repository[];
};
export type SvgProps = {
width: string;
height: string;
href?: string;
};