Skip to content

Glossary: TypeScript Basics

structural typing

TypeScript compares objects by their shape, not by name, so any object with the right properties counts as a `Product` even if never declared as one.

Where the book teaches it

Related terms

interface