From b9eafaf5d8b8e5a15a21a634c6e55adb0849ff84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Strama?= Date: Thu, 21 Dec 2023 11:24:30 +0100 Subject: [PATCH] typescript fix --- package.json | 2 +- src/api.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 1e58a75..172a795 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "lib/index.js", "scripts": { "prepublish": "rollup -c & yarn tsc", - "type-check": "tsc --noEmit" + "type-check": "tsc" }, "repository": "https://github.com/avorty/vulcan-api-js.git", "homepage": "https://avorty.github.io/vulcan-api-js", diff --git a/src/api.ts b/src/api.ts index e88c5b3..f9c1559 100644 --- a/src/api.ts +++ b/src/api.ts @@ -96,7 +96,7 @@ export class Api { } try { const rawRes = await fetch(fullUrl, options); - const jsonRes = await rawRes.json(); + const jsonRes: any = await rawRes.json(); const status = jsonRes["Status"]; const envelope = jsonRes["Envelope"]; if (status.Code !== 0) {