Typescript Basics

This course empowers JavaScript developers to write safer, scalable, and more maintainable code by leveraging TypeScript’s strong typing and modern features. Covering essential concepts like interfaces, generics, enums, and classes, along with setup and configuration best practices, this course combines hands-on exercises with theory to provide a complete understanding of TypeScript.

  • duration 12 hours
  • Language English
  • format Online
duration
12 hours
location
Online
Language
English
Code
WEB-015
price
€ 400 *

Available sessions

To be determined



Training for 7-8 or more people?
Customize trainings for your specific needs

Description

This TypeScript course covers everything from setting up your first TypeScript project to exploring advanced features like generics, enums, and classes. Starting with an introduction to TypeScript’s benefits and setup, you’ll learn how to configure the TypeScript compiler, manage project settings, and run TypeScript in various environments, including browsers. Moving deeper, the course introduces TypeScript’s strong typing system, which is essential for creating accurate and safe code. You’ll master foundational types, type aliases, interfaces, union and intersection types, as well as type guards and assertions, which are crucial for writing error-free code.

 

A key component of this course is hands-on practice, allowing you to reinforce your learning with real-world applications. Through practical exercises, you’ll work on defining types, creating interfaces, and using classes and generics to build complex yet type-safe applications. This combination of theory and practice prepares you to confidently integrate TypeScript into any JavaScript project.

 

From basic types to advanced structures, you’ll learn how to effectively use TypeScript’s features to write clear, concise, and error-resistant code. You’ll explore interfaces, generics, enums, and more, which help to enforce structure and predictability in your applications. With knowledge of how to set up and configure TypeScript projects, you’ll be able to add TypeScript to existing JavaScript projects or start new TypeScript-based projects, maximizing both development efficiency and code stability. TypeScript introduces object-oriented principles like encapsulation and polymorphism through classes and interfaces, as well as functional programming capabilities with types and generics. These skills make it easier to manage complex applications and maintain code quality over time.

 

This TypeScript training empowers you to deliver high-quality, robust applications that stand up to the demands of modern development. Ideal for JavaScript developers aiming to enhance their skills, this course provides the tools, techniques, and best practices to succeed with TypeScript in any project or team.

After completing the course, a certificate is issued on the Luxoft Training form

Objectives

The course is aimed at introducing JavaScript developers to TypeScript syntax and features, plus demonstrate how these features could be effectively used.


Target Audience

  • Web developers

Prerequisites

  • Prior experience with JavaScript, NPM, WebPack

Roadmap

  • TypeScript introduction. Pros and cons of using TypeScript. [1h theory]
  • Setting up TypeScript project [2h theory, 1h practice]

Typescript compiler

Compilation from command line

Debugging and code execution

Configuration options

Running TypeScript in browser

CJS / ESM modules compilation

    • TypeScript basics [3h theory, 1h practice]

    Basic types in TypeScript: primitive types, literal types function and object types, array and tuple types, special types, assignability and types widening

    Interfaces

    Type aliases

    Union types

    Intersection types

    Object types in depth. Index signature syntax

    Type guards

    Assertions

    Working with null and undefined, configuring strictNullChecks

    Practice: union types, interfaces, type aliases

      • Enums [0.5h theory, 0.5h practice]

      Enums basics

        • Classes [0.5h theory, 1h practice]

        Classes: property modifiers (public, private, protected, readonly). Hard-private fields. Static fields

        Classes: implementing interfaces

        Practice: TS classes workbook (writing an object-oriented application, using typing, classes, interfaces, encapsulation, polymorphism)

          • Generics [1h theory, 0.5 h practice]

          Purpose of generic type

          Type constraints

          Generic interfaces

          Generic classes

          Generic type aliases.

          Type parameter defaults.

          Practice: Generics

          Total: 8h theory (66.6%), 4h practice (33.3%)



          Related courses

          You may also be interested in

          Discover more about professional growth and skills development

          contact us