@hongminheeๆดช ๆฐๆ (Hong Minhee) yeah, so I want this in typescript. The lack of types for errors thrown in typescript is it's biggest oversight imo.
@thisismissemEmelia ๐ธ๐ป There's actually an issue in the TypeScript repo proposing exactly this! Many developers agree that typed errors would be a huge improvement. The current โ
try
/catch
any
โ approach feels like a gap in TS's otherwise strong type system.
If you have a fediverse account, you can quote this note from your own instance. Search https://hackers.pub/ap/notes/0195b7d5-31dd-79c7-9ef1-3736c4357eda on your instance and quote it. (Note that quoting is not supported in Mastodon.)