mirror of
https://github.com/flarum/framework.git
synced 2024-11-23 06:01:56 +08:00
revert: fix typing errors after dependencies update
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
This commit is contained in:
parent
19793d5617
commit
f49cf887dc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user