-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustom.d.ts
66 lines (58 loc) · 1.13 KB
/
custom.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
declare module '*.svg' {
import React = require('react');
export const ReactComponent: React.FunctionComponent<
React.SVGProps<SVGSVGElement>
>;
const src: string;
export default src;
}
type ArticlesData = {
count: number;
next: string;
previous: string;
results: ArticlesResults[];
};
type ArticlesResults = {
id: number;
title: string;
url: string;
image_url: string;
news_site: string;
summary: string;
published_at: string;
updated_at: string;
featured: boolean;
launches: ArticlesLaunches[];
events: ArticlesEvents[];
};
type ArticlesLaunches = {
launch_id: string;
provider: string;
};
type ArticlesEvents = {
event_id: number;
provider: string;
};
type SetArticlesData = {
setArticles: React.Dispatch<SetStateAction<ArticlesData>>;
};
type ReportsData = {
count: number;
next: string;
previous: string;
results: ReportsResults;
};
type ReportsResults = {
id: number;
title: string;
url: string;
image_url: string;
news_site: string;
summary: string;
published_at: string;
updated_at: string;
};
type InfoData = {
version: string;
news_sites: string[];
};