LearningTypeScript / site

Companion website for the Learning TypeScript book.
https://learningtypescript.com
MIT License
47 stars 11 forks source link

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

Closed JoshuaKGoldberg closed 4 months ago

JoshuaKGoldberg commented 5 months ago

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.