From e21581a6b9bfc3283e6c31212475db629bcae293 Mon Sep 17 00:00:00 2001 From: ITOH <72305210+itohatweb@users.noreply.github.com> Date: Wed, 7 Apr 2021 10:46:02 +0200 Subject: [PATCH] Update src/rest/run_method.ts Co-authored-by: ayntee --- src/rest/run_method.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rest/run_method.ts b/src/rest/run_method.ts index 4acf928e5..11c40512d 100644 --- a/src/rest/run_method.ts +++ b/src/rest/run_method.ts @@ -35,7 +35,7 @@ export function runMethod( .then((res) => { if (res.status === 204) return undefined; - return res.json() as unknown as T; + return res.json() as T; }) .catch((error) => { console.error(error);