Skip to content

Glossary: TypeScript Basics

class

Also written: classes

A JavaScript blueprint for objects, like `GiftCard`. In TypeScript, each property is declared with a type at the top, and the constructor and methods are annotated like functions.

Where the book teaches it

Related terms

implementsstrictPropertyInitialization