Comment

Comment by jestar_jokin

Libs provide something out of the box to do this, e.g. `ts-essentials` provides `Opaque`, so you just write `type DateString = Opaque<string, 'DateString'>`

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton