-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypings.d.ts
84 lines (71 loc) · 1.35 KB
/
typings.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
type pageLayoutCtx = {
children: prop;
};
type homeCtx = {
page: prop;
Component: JSX.Element;
pageProps: props;
};
type pageCtx = {
page: prop;
Component: JSX.Element;
pageProps: props;
};
type postCtx = {
query: {
slug: string;
};
};
type reviewData = {
data: SWRHook;
error: string;
id: string;
attributes: any;
results: PropsWithChildren;
quote: string;
author: string;
company: string;
jobtitle: string;
alt: any;
transition: number;
};
//API Data & Response Types
type ResponseError = {
message: string
}
export type seo = {
title: string;
description: string;
};
export type Planet = {
id: string;
name: string;
slug: string;
diameter: string;
mass: string;
distance_from_earth: string;
distance_from_sun: string;
atmosphere: string;
moons: string;
rings: string;
description: string;
thumbnail: string;
};
export type Galaxy = {
id: string;
name: string;
description: string;
type: string;
central_bar: string;
central_bulge: string;
prominent_halo: string;
diameter: string;
number_of_stars: string;
distance_from_earth: string;
number_of_spiral_arms: string;
cause_of_ring_structure: string;
cause_of_elongated_shape: string;
cause_of_distinctive_shape: string;
cause_of_distinctive_appearance: string;
cause_of_high_rate_of_star_formation: string;
};