← All tutorials

Skill Zuno · skillzunos.com · Fullstack

TypeScript tutorial

Learn TypeScript on Skill Zuno. This TypeScript tutorial covers New, Easy, Medium, Hard, and Diff levels so you can study practical TypeScript problems on skillzunos.com.

Open TypeScript on Skill Zuno

Also see the TypeScript interview questions.

TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. Its structural type system catches errors at build time and powers editor tooling, without changing how the code runs. Interviews cover type inference, unions and narrowing, generics, utility types and how to configure the compiler.

TypeScript topics covered

  • Basic types, type inference and type annotations — Where the compiler infers types for you and where an explicit annotation makes code clearer.
  • Interfaces versus type aliases — What each can express, declaration merging, and a practical rule for choosing between them.
  • Union and intersection types, and narrowing with type guards — Modelling values that can be several shapes, and using typeof, in and discriminants to narrow them safely.
  • Generics and generic constraints — Writing reusable functions and classes that keep type information, and restricting them with extends.
  • Utility types: Partial, Pick, Omit, Record and ReturnType — Deriving new types from existing ones instead of repeating fields by hand.
  • Mapped, conditional and template literal types — Building types programmatically, such as making every property optional or mapping event names.
  • unknown, any and never — Choosing the right escape hatch for untrusted data, and using never for exhaustiveness checks.
  • tsconfig.json and strict mode — The compiler options that matter most, and why strict mode catches the most bugs.

What you can learn

  • TypeScript tutorial for beginners and experienced developers
  • Level-based practice: New, Easy, Medium, Hard, and Diff
  • Fullstack topics alongside TypeScript on skillzunos.com

More Fullstack tutorials

All tutorials