@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 reply to this note from your own instance. Search https://hackers.pub/ap/notes/0195b7d5-31dd-79c7-9ef1-3736c4357eda on your instance and reply to it.