-
Notifications
You must be signed in to change notification settings - Fork 0
/
interfaces.ts
67 lines (61 loc) · 1.54 KB
/
interfaces.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
// PeopleData interface for storing information about people in space
interface PeopleData {
number: number;
people: {
craft: string;
name: string;
}[];
}
// SortedPeople interface for storing people in space categorized by spaceship
interface SortedPeople {
craft: string;
people: string[];
}
// Asteroid interface for storing NEO asteroid objects information
interface Asteroid {
links: {
self: string;
};
name: string;
estimated_diameter: {
meters: {
estimated_diameter_min: number;
estimated_diameter_max: number;
};
};
is_potentially_hazardous_asteroid: boolean;
close_approach_data: {
close_approach_date_full: string;
relative_velocity: {
kilometers_per_hour: string;
};
}[];
}
// ISSPosition for storing information about ISS position
interface ISSPosition {
timestamp: number;
iss_position: {
longitude: string;
latitude: string;
}
}
// ImageData interface for storing information about image
interface ImageData {
links: {
href: string;
}[];
data: {
title: string;
date_created: string;
}[];
}
// ApodData interface for storing information about APOD (Astronomy Picture of the Day)
interface ApodData {
date: string;
title: string;
explanation: string;
url: string;
copyright?: string;
}
// Export all the interfaces for use in other files
export { PeopleData, SortedPeople, Asteroid, ISSPosition, ImageData, ApodData }