Skip to content

Glossary: TypeScript Basics

interface

Also written: interfaces

A named description of an object's shape, such as `Product` with `sku`, `name` and `priceCents`. It exists only for `tsc` and produces no JavaScript.

Where the book teaches it

Related terms

type aliasstructural typingreadonly