revert: fix typing errors after dependencies update

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
This commit is contained in:
Sami Mazouz 2022-11-16 11:17:20 +01:00
parent 19793d5617
commit f49cf887dc
No known key found for this signature in database

View File

@ -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