TScert: A Sound Core for TypeScript

bpierre 25 points 11 comments November 04, 2026
github.com · View on Hacker News

Discussion Highlights (3 comments)

conartist6

There's there is this little, really piddlingly small problem that TS isn't a sound language. Its type system, for convenience, pretends JS works in ways that are not how JS ACTUALLY works You can of course slap a formal solver in without knowing that , which is evidently what this person did

gavinray

> Acceptance proves, of the function's translation into the calculus, that for inputs and a heap meeting their declared types it does not get stuck and does not return a value outside its result type. TypeScript's type-checker already proves the latter bit, no?

SSchick

I'd like examples/cases this catches that aren't handled by the existing compiler.

Semantic search powered by Rivestack pgvector
3,874 stories · 35,194 chunks indexed