Skip to content

Commit b9eafaf

Browse files
committed
typescript fix
1 parent edb0be0 commit b9eafaf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "lib/index.js",
66
"scripts": {
77
"prepublish": "rollup -c & yarn tsc",
8-
"type-check": "tsc --noEmit"
8+
"type-check": "tsc"
99
},
1010
"repository": "https://github.com/avorty/vulcan-api-js.git",
1111
"homepage": "https://avorty.github.io/vulcan-api-js",

src/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export class Api {
9696
}
9797
try {
9898
const rawRes = await fetch(fullUrl, options);
99-
const jsonRes = await rawRes.json();
99+
const jsonRes: any = await rawRes.json();
100100
const status = jsonRes["Status"];
101101
const envelope = jsonRes["Envelope"];
102102
if (status.Code !== 0) {

0 commit comments

Comments
 (0)