Skip to content

Conversation

@yufernando
Copy link

Set error type to any in catch clause.

Set error type to any in catch clause.
@robrich
Copy link
Owner

robrich commented Sep 10, 2021

I like where this is going. Any reason you chose not to use (err: Error)?

@yufernando
Copy link
Author

Actually err:Error might be more precise and therefore better.

The err: any is just to avoid the newer versions of Typescript from complaining. If your users are just viewing the git repo locally then it is not a big issue.

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