diff --git a/src/utils/ErrorBoundary.ts b/src/utils/ErrorBoundary.ts index d13065f9..a4ac459c 100644 --- a/src/utils/ErrorBoundary.ts +++ b/src/utils/ErrorBoundary.ts @@ -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); } } -} \ No newline at end of file +}