TypeScript has a structural type system, not a nominal type system
TypeScript has a structural type system, not a nominal type system.
What's that mean?
When determining if a type "fits", the type's *structure* matters. The type's name doesn't.
TypeScript has a structural type system, not a nominal type system.
What's that mean?
When determining if a type "fits", the type's *structure* matters. The type's name doesn't.