mirror of
https://github.com/flarum/core.git
synced 2025-08-04 15:37:51 +02:00
revert: fix typing errors after dependencies update
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user