Skip to content

Glossary: TypeScript Basics

assign

Also written: assignment, assignable

To store a value in a variable or property. "Type 'string' is not assignable to type 'number'" means you tried to put a string where only a number may go.

Where the book teaches it

Related terms

type annotation