Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Adjust CustomError.cause type to changes in TypeScript. #358

Merged
merged 1 commit into from
Mar 23, 2022

Conversation

yeldiRium
Copy link
Contributor

@yeldiRium yeldiRium commented Mar 23, 2022

BREAKING CHANGE:
This restricts the type of CustomError.cause to Error | undefined.

This resolves #338.

BREAKING CHANGE:
This restricts the type of `cause` to `Error | undefined`.
@yeldiRium yeldiRium merged commit a288ae1 into main Mar 23, 2022
@yeldiRium yeldiRium deleted the fix/adjust-custom-error-type-to-typescript-changes branch March 23, 2022 13:25
goloroden pushed a commit that referenced this pull request Mar 23, 2022
# [9.0.0](8.2.0...9.0.0) (2022-03-23)

### Bug Fixes

* Adjust CustomError.cause type to changes in TypeScript. ([#358](#358)) ([a288ae1](a288ae1))

### BREAKING CHANGES

* This restricts the type of `cause` to `Error | undefined`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

v8 9.3 adds optional cause property to Error
2 participants