Re:TIL: `satisfies` is my favorite TypeScript keyword
by Normal_gaussian on Sunday November 23, 2025 @07:42AM
(#46023129)
This is what I do:
Including an error message and an error type helps if one does slip through to runtime. Additionally, the AbsurdError can be caught and escalated appropriately. And finally the absurd function can be used in an inline ternary etc. where alternatives like throw cannot.
[ Parent
| on HN ]
There are no comments on this comment yet.