3 ms·
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://gith
by tshaddox 4y ago
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 https://github.com/kourge/ts-brand
- Waterluvian 4y ago“nominal typing” thanks for the link and terminology!