fix callback type

This commit is contained in:
Bruno Windels 2023-01-19 11:30:52 +01:00
parent 3842f450dd
commit e6b17cc74a

View File

@ -19,7 +19,7 @@ export const ErrorValue = Symbol("ErrorBoundary:Error");
export class ErrorBoundary { export class ErrorBoundary {
private _error?: Error; private _error?: Error;
constructor(private readonly errorCallback: (Error) => void) {} constructor(private readonly errorCallback: (err: Error) => void) {}
/** /**
* Executes callback() and then runs errorCallback() on error. * Executes callback() and then runs errorCallback() on error.