mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
fix callback type
This commit is contained in:
parent
3842f450dd
commit
e6b17cc74a
@ -19,7 +19,7 @@ export const ErrorValue = Symbol("ErrorBoundary:Error");
|
||||
export class ErrorBoundary {
|
||||
private _error?: Error;
|
||||
|
||||
constructor(private readonly errorCallback: (Error) => void) {}
|
||||
constructor(private readonly errorCallback: (err: Error) => void) {}
|
||||
|
||||
/**
|
||||
* Executes callback() and then runs errorCallback() on error.
|
||||
@ -79,4 +79,4 @@ export function tests() {
|
||||
assert.strictEqual(result, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user