forked from github/forgoodfirstissue
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
68 lines (60 loc) · 1.24 KB
/
Copy pathtypes.ts
File metadata and controls
68 lines (60 loc) · 1.24 KB
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
type Nullable<T> = T | null;
export interface Tag {
display: string;
id: string;
}
export interface CountableTag extends Tag {
count: number;
}
export interface Repository {
description: Nullable<string>;
has_new_issues: boolean;
id: string;
issues: Issue[];
language: Tag;
last_modified: string;
license?: string;
name: string;
owner: string;
stars: number;
stars_display: string;
url: string;
topics?: Tag[];
}
export interface Issue {
comments_count: number;
created_at: string;
id: string;
labels: Label[];
number: number;
title: string;
url: string;
}
export interface Label {
id: string;
display: string;
}
export interface Organization {
id: string;
name: string;
url: string;
description: string;
language: Tag;
volunteers_needed: number;
stakeholder_available: boolean;
project_ask: string;
issue_url: string;
is_claimed: boolean;
}
export enum RepositorySortOrder {
LEAST_STARS = "By Least Stars",
MOST_STARS = "By Most Stars",
NONE = "None"
}
export interface AppData {
languages: CountableTag[];
repositories: Repository[];
repositorySortOrder: RepositorySortOrder;
topics: CountableTag[];
updateRepositorySortOrder: (sortOrder: RepositorySortOrder) => void;
}