Skip to content

Commit

Permalink
fix: make ErrorLike compatible with Error when exactOptionalPrope…
Browse files Browse the repository at this point in the history
…rtyTypes is true
  • Loading branch information
benyap committed Sep 3, 2022
1 parent bce9288 commit 5a2ac48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @see https://github.com/tc39/proposal-error-cause
*/
export interface ErrorLike extends Error {
cause?: Error;
cause?: Error | undefined;
}

export type EErrorOptions<
Expand Down

0 comments on commit 5a2ac48

Please sign in to comment.