@apiverve/unitconverter 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 +26 -1
- package/package.json +4 -3
package/index.d.ts
CHANGED
|
@@ -7,10 +7,35 @@ declare module '@apiverve/unitconverter' {
|
|
|
7
7
|
export interface unitconverterResponse {
|
|
8
8
|
status: string;
|
|
9
9
|
error: string | null;
|
|
10
|
-
data:
|
|
10
|
+
data: UnitConverterData;
|
|
11
11
|
code?: number;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
|
|
15
|
+
interface UnitConverterData {
|
|
16
|
+
result: Result;
|
|
17
|
+
unitDefinitions: UnitDefinitions;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
interface Result {
|
|
21
|
+
result: number;
|
|
22
|
+
from: string;
|
|
23
|
+
to: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
interface UnitDefinitions {
|
|
27
|
+
from: From;
|
|
28
|
+
to: From;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
interface From {
|
|
32
|
+
abbr: string;
|
|
33
|
+
measure: string;
|
|
34
|
+
system: string;
|
|
35
|
+
singular: string;
|
|
36
|
+
plural: string;
|
|
37
|
+
}
|
|
38
|
+
|
|
14
39
|
export default class unitconverterWrapper {
|
|
15
40
|
constructor(options: unitconverterOptions);
|
|
16
41
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apiverve/unitconverter",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.12",
|
|
4
4
|
"description": "Unit Converter is a simple tool for converting units. It returns the converted value.",
|
|
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/unitconverter-
|
|
13
|
+
"url": "git+https://github.com/apiverve/unitconverter-api.git",
|
|
14
|
+
"directory": "npm"
|
|
14
15
|
},
|
|
15
16
|
"keywords": [
|
|
16
17
|
"unit converter", "unit conversion", "unit converter api", "unit conversion api", "unit converter tool"
|
|
@@ -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/unitconverter-
|
|
22
|
+
"url": "https://github.com/apiverve/unitconverter-api/issues"
|
|
22
23
|
},
|
|
23
24
|
"homepage": "https://apiverve.com/marketplace/unitconverter?utm_source=npm",
|
|
24
25
|
"devDependencies": {
|