-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathtypes.ts
More file actions
44 lines (42 loc) · 849 Bytes
/
types.ts
File metadata and controls
44 lines (42 loc) · 849 Bytes
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
export interface GitHubIssue {
id: number;
number: number;
title: string;
body: string | null;
state: 'open' | 'closed';
created_at: string;
updated_at: string;
html_url: string;
user: {
login: string;
avatar_url: string;
html_url: string;
};
labels: Array<{
id: number;
name: string;
color: string;
description: string | null;
}>;
}
export interface BlogPost {
id: number;
number: number;
title: string;
content: string;
htmlContent: string;
slug: string;
publishedAt: string;
updatedAt: string;
author: {
name: string;
avatar: string;
url: string;
};
githubUrl: string;
labels: string[];
}
export interface BlogListResponse {
posts: BlogPost[];
total: number;
}