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(typings): remove Error.cause type which conflicts with es2022 #670

Merged
merged 1 commit into from
Aug 8, 2023

Conversation

KurtGokhan
Copy link
Contributor

This type was causing conflicts with projects which use ES2022. The correct way of adding this type is updating ES2020 to ES2022 in tsconfig, unless there is an issue with that. As far as I tested, project builds correctly, so I guess there is no issue.

Alternatively, it could be written as cause?: unknown to avoid conflicts. It is better to leave this to TS though.

@tannerlinsley tannerlinsley merged commit dc5a861 into TanStack:beta Aug 8, 2023
1 check failed
@KurtGokhan KurtGokhan deleted the fix-es2022-global-typings branch August 8, 2023 13:41
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.

2 participants