From f49cf887dcce10fe9fd3e0ac18dea0b8df2bbfa1 Mon Sep 17 00:00:00 2001 From: Sami Mazouz Date: Wed, 16 Nov 2022 11:17:20 +0100 Subject: [PATCH] revert: fix typing errors after dependencies update Signed-off-by: Sami Mazouz --- framework/core/js/src/common/Application.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/framework/core/js/src/common/Application.tsx b/framework/core/js/src/common/Application.tsx index 64e70d18f..5db7fa84e 100644 --- a/framework/core/js/src/common/Application.tsx +++ b/framework/core/js/src/common/Application.tsx @@ -433,6 +433,8 @@ export default class Application { // a dud response, we don't want the application to crash. We'll show an // error message to the user instead. + // @ts-expect-error Typescript doesn't know we return promisified `ReturnType` OR `string`, + // so it errors due to Mithril's typings const defaultDeserialize = (response: string) => response as ResponseType; // When extracting the data from the response, we can check the server