Course details
Typescript
Learn how TypeScript layers a type system on top of JavaScript. You will set up the compiler, describe data with primitive, array, object and union types, and use interfaces, assertions and narrowing tools safely — all on one small task-tracker app.
Course curriculum
Introduction to TypeScript4 lessons
See what TypeScript adds to JavaScript, install the compiler, run your first file three different ways, and mix typed and untyped code in one project.
Type Inference3 lessons
Learn which types TypeScript works out on its own, then control the compiler with tsconfig.json and the handful of options that matter most.
TypeScript Types5 lessons
Describe values with boolean, number and string, handle null, undefined and void, type arrays and tuples, give objects a shape, and name fixed sets of values with enums.
Assertions and Type Compatibility3 lessons
Tell the compiler what you know with as, see why as any is a last resort and as const is a gift, and learn the structural rule that decides when one type fits another.
Combining Types4 lessons
Say 'this or that' with unions, 'this and that' with intersections, give any type a name with an alias, and turn an object's keys into a type with keyof.
TypeScript Interfaces5 lessons
Declare and extend interfaces, decide between an interface and a type alias, and use any, unknown, never, the non-null assertion and satisfies without weakening your checks.
