TypeScript Introduction
A concise introduction to TypeScript — covering motivation, the type system, type inference, and the most common patterns for bringing static typing to JavaScript projects.
Technologies
TypeScript brings static typing to JavaScript — catching errors at compile time, improving IDE support, and making large codebases far more maintainable. This introduction covers the core concepts needed to start writing type-safe JavaScript with confidence.
Who is this training for?
JavaScript developers who want to adopt TypeScript in existing or new projects, and Vue.js or Node.js developers preparing to work in a TypeScript codebase.
Agenda
Motivation
- Why TypeScript? What problems does dynamic typing cause?
- How TypeScript mitigates JavaScript's typing pitfalls
Installation and Setup
- Installing TypeScript and configuring tsconfig.json
The Type System
- Primitive types, object types, arrays, and tuples
- Union types and intersection types
- Literal types
Type Inference
- How TypeScript infers types automatically
- When to annotate and when to let inference do the work
Dynamic Typing Patterns
- Working with
any,unknown, and type narrowing
Book this Training
Interested in this training for your team? Reach out and we'll put together a proposal tailored to your requirements — on-site or remote, predefined agenda or custom.
Request this Training