We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71b9483 commit f1aa735Copy full SHA for f1aa735
index.d.ts
@@ -0,0 +1,21 @@
1
+interface ISSLocation {
2
+ message: string
3
+ position: {
4
+ latitude: number
5
+ longitude: number
6
+ }
7
+ date_time: Date
8
+}
9
+interface Astronaut { name: string, craft: string }
10
+interface PeopleInSpace {
11
+ number: number
12
13
+ people: Astronaut[]
14
15
+
16
+declare class OpenNotify {
17
+ public static getISSLocation(): Promise<ISSLocation>
18
+ public static getPeopleInSpace(): Promise<PeopleInSpace>
19
20
21
+export = OpenNotify;
package.json
@@ -3,6 +3,7 @@
"version": "1.0.0",
"description": "Open Nofity API client for javascript",
"main": "index.js",
+ "types": "index.d.ts",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
0 commit comments