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'>` parent jestar_jokin 5 years ago