fix up errors too

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2021-10-26 16:55:36 +02:00
parent a15d028517
commit 8eedc159ae
6 changed files with 22 additions and 15 deletions
-1
View File
@@ -17,7 +17,6 @@ export class ConflictError extends CustomErrorBase {}
// @public
export class CustomErrorBase extends Error {
constructor(message?: string, cause?: Error | unknown);
// (undocumented)
readonly cause?: Error | undefined;
}
@@ -33,6 +33,9 @@ import { isError } from './assertion';
* ```
*/
export class CustomErrorBase extends Error {
/**
* An inner error that caused this error to be thrown, if any.
*/
readonly cause?: Error | undefined;
constructor(message?: string, cause?: Error | unknown) {