Re:TIL: `satisfies` is my favorite TypeScript keyword
by rjh29 on Sunday November 23, 2025 @02:49AM
(#46021613)
You're missing the specialisation of Object/Any. For example Array.flat called with [int, [bool, string]] returns a type [int, bool, string]. Admittedly this is somewhat niche, but most other languages can't express this - the type information gets erased.
[ Parent
| on HN ]
There are no comments on this comment yet.