Skip to content

Conversation

@andersk
Copy link
Contributor

@andersk andersk commented Mar 3, 2022

In TypeScript 4.4, --strict implies --useUnknownInCatchVariables, so in a catch (error) block, error has type unknown rather than any.

In TypeScript 4.4, --strict implies --useUnknownInCatchVariables, so
in a ‘catch (error)’ block, ‘error’ has type ‘unknown’ rather than
‘any’.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Copy link
Member

@ckerr ckerr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM and is straightforward

@ckerr ckerr merged commit 1269fa7 into electron:main Mar 4, 2022
@andersk andersk deleted the catch-unknown branch March 4, 2022 01:59
@andersk
Copy link
Contributor Author

andersk commented Mar 5, 2022

I see you’ve added a v2.0.6 Git tag, but there’s no 2.0.6 release on NPM.

(Ideally, it’d be nice if an NPM release could include #111 as well?)

@erickzhao
Copy link
Member

@andersk i believe we need to re-kick a release for the module. i can handle it on monday.

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.

3 participants