Glossary term
What is structural typing? Meaning for developers
Two types are compatible if their shapes match, even when their names differ.
Learn it properly · TypeScript From ZeroLesson 2: Objects, Interfaces, Type Aliases and ClassesObject types, interface versus type, structural typing, excess-property checks, classes, enums versus unions, as const and satisfies.