Re:TIL: `satisfies` is my favorite TypeScript keyword
by sandblast on Sunday November 23, 2025 @07:58AM
(#46023216)
Aren't these bugs that could be "simply" reported and fixed? Or maybe those would get a label "not a bug" attached by the TS creators for some reason?
[ Parent
| on HN ]
Re:TIL: `satisfies` is my favorite TypeScript keyword
by debugnik on Sunday November 23, 2025 @08:24AM
(#46023368)
Both are by design. Array covariance is a common design mistake in OOP languages, which the designer of TypeScript had already done for C# but there they at least check it at runtime. And the latter was declared not-a-bug already IIRC.
TypeScript designers insist they're ok with it being unsound even on the strictest settings. Which I'd be ok with if the remaining type errors were detected at runtime, but they also insist they don't want the type system to add any runtime semantics.