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

Article: Why TypeScript doesn't have 'throws' types or checked exceptions #138

Closed
JoshuaKGoldberg opened this issue Mar 17, 2024 · 0 comments · Fixed by #137
Closed

Article: Why TypeScript doesn't have 'throws' types or checked exceptions #138

JoshuaKGoldberg opened this issue Mar 17, 2024 · 0 comments · Fixed by #137

Comments

@JoshuaKGoldberg
Copy link
Collaborator

Overview

As a precursor to #134 (Article: Why throwing errors isn't type-safe): one of the big reasons why errors aren't type-safe in TS is that TypeScript doesn't have throws types or checked exceptions the way Java does. I'll want to have an article explaining that before writing #134.

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 a pull request may close this issue.

1 participant