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(types): change error type to unknown #12

Merged
merged 1 commit into from
Dec 24, 2021

Conversation

antfu
Copy link
Collaborator

@antfu antfu commented Dec 24, 2021

In TS 4.4 or 4.5, they change the catch (e: unknown) from Error to unknown as throwing a none Error is also valid in JS.

This PR makes the typechecker stop complaining about the error.

@Aslemammad Aslemammad merged commit c1dff13 into tinylibs:main Dec 24, 2021
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