Hacker News new | past | comments | ask | show | jobs | submit login

Typescript 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: