Published on

TypeScript Opaque Types - Nominal vs Structural Typing (Advanced TypeScript)

Authors

TypeScript Opaque Types - Nominal vs Structural Typing (Advanced TypeScript)

TypeScript Opaque Types - Nominal vs Structural Typing (Advanced TypeScript)

Typescript is build using the Structural Typing way, that means that it will only rely on the underlaying type like number, string, boolean to match between types, different from the way Nominal Types that uses the name of the type declared.