Unlocking type-safety superpowers in Typescript with nominal and refinement types

from blog zackoverflow, | ↗ original
TLDR; I came across Typescript’s lesser known symbols to fix a problem in our codebase, but then realized it could be extended to unlock even stronger type-safety guarantees