← Back to TypeScript
TypeScript Basics
Types you write and types the compiler already knows. The blanks are the annotations that change what the next line is allowed to be.
Type Annotations
beginnerblankAdd type annotations to function parameters, and infer each return type from what the function actually computes.
Interface Definition
beginnerblankDefine an interface for a User object, inferring each property's type from how the property is used below it.
Union Types
beginnerblankUse union types to allow a variable to hold multiple types.
Array Types
beginnerblankWork with typed arrays and array methods in TypeScript.