Files
pole-book/server/node_modules/pony-cause/lib/error-with-cause-compat.d.ts

8 lines
235 B
TypeScript

export class ErrorWithCause extends Error {
constructor(message: string, { cause }?: {
cause?: unknown;
} | undefined);
// We need to be stricter here because of esnext lib in TS 4.6 and TS 4.7
cause?: Error;
}