Re:Twenty five thousand dollars of funny money
by tshaddox on Saturday December 03, 2022 @12:05PM
(#33844972)
The closest way to get nominal typing in TypeScript is with type branding. I haven’t actually used this small library, but it illustrates the idea: https://github.com/kourge/ts-brand
[ Parent
| on HN ]
Re:Twenty five thousand dollars of funny money
by Waterluvian on Saturday December 03, 2022 @12:05PM
(#33844982)
“nominal typing” thanks for the link and terminology!