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);