@apiverve/weatherforecast 1.1.10 → 1.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +21 -1
- package/package.json +4 -3
package/index.d.ts
CHANGED
|
@@ -7,10 +7,30 @@ declare module '@apiverve/weatherforecast' {
|
|
|
7
7
|
export interface weatherforecastResponse {
|
|
8
8
|
status: string;
|
|
9
9
|
error: string | null;
|
|
10
|
-
data:
|
|
10
|
+
data: WeatherData;
|
|
11
11
|
code?: number;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
|
|
15
|
+
interface WeatherData {
|
|
16
|
+
tempC: number;
|
|
17
|
+
tempF: number;
|
|
18
|
+
windMph: number;
|
|
19
|
+
windKph: number;
|
|
20
|
+
windDegree: number;
|
|
21
|
+
windDir: string;
|
|
22
|
+
pressureMB: number;
|
|
23
|
+
pressureIn: number;
|
|
24
|
+
precipMm: number;
|
|
25
|
+
precipIn: number;
|
|
26
|
+
feelslikeC: number;
|
|
27
|
+
feelslikeF: number;
|
|
28
|
+
visKM: number;
|
|
29
|
+
visMiles: number;
|
|
30
|
+
gustMph: number;
|
|
31
|
+
gustKph: number;
|
|
32
|
+
}
|
|
33
|
+
|
|
14
34
|
export default class weatherforecastWrapper {
|
|
15
35
|
constructor(options: weatherforecastOptions);
|
|
16
36
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apiverve/weatherforecast",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.12",
|
|
4
4
|
"description": "Weather is a simple tool for getting the current weather. It returns the temperature, humidity, and more for a given location.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
},
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
13
|
-
"url": "git+https://github.com/apiverve/weatherforecast-
|
|
13
|
+
"url": "git+https://github.com/apiverve/weatherforecast-api.git",
|
|
14
|
+
"directory": "npm"
|
|
14
15
|
},
|
|
15
16
|
"keywords": [
|
|
16
17
|
"weather forecast", "weather forecast api", "weather forecast tool", "weather forecast software", "weather forecast service"
|
|
@@ -18,7 +19,7 @@
|
|
|
18
19
|
"author": "APIVerve <hello@apiverve.com> (http://apiverve.com/)",
|
|
19
20
|
"license": "MIT",
|
|
20
21
|
"bugs": {
|
|
21
|
-
"url": "https://github.com/apiverve/weatherforecast-
|
|
22
|
+
"url": "https://github.com/apiverve/weatherforecast-api/issues"
|
|
22
23
|
},
|
|
23
24
|
"homepage": "https://apiverve.com/marketplace/weatherforecast?utm_source=npm",
|
|
24
25
|
"devDependencies": {
|