6 ms·
All I want is nominal types, if this is possible already, somebody please let me know!!
by rosebay 4y ago
All I want is nominal types, if this is possible already, somebody please let me know!!
- goto11 4y agoTypescript does not support nominal typing except for enums. It can be emulated by giving types an unique property, but this is kind of a hack.