TypeScript Course: Master the TypeScript Language with Ease
TypeScript has become an essential language for Angular and Node.js application developers. If you want to take your JavaScript programming to the next level, our TypeScript course is for you. This TypeScript training will guide you from the basics to advanced concepts such as type checking, object manipulation, and the use of generics.
With a clear and gradual teaching approach, you will be able to write robust, maintainable code suitable for large applications. Don’t miss the opportunity to become comfortable with this programming language through our TypeScript training and stand out as a developer.
Module 1. Introduction
- What is TypeScript?
- TypeScript Philosophy
- Why Use TypeScript?
- Using TypeScript
Module 2. The Basics of Variables
- Declaring a Variable
- Declaring Types in Untyped Code
- Hoisting Variables
- TypeScript Scope is JavaScript Scope
- Switch Scope
- The Multiple Methods of Declaring a String
- String-Tagged Templates
- What is a Number in TypeScript?
- Booleans, Functions, and Objects
- Avoiding `any` at Any Time Possible
- Mutable and Immutable Arrays
- Undefined Versus Null
- Returning nothing with Void
- The Primitive Type never
- Unknown: A Better any
- Literal Type to Narrow Primitive Type
- Symbol and Unique Symbol
- Casting to Change Type
Module 3. Comment
- TypeScript’s Comments are like JavaScript’s with One Exception
Module 4. Enum
- Enum With and Without Values
- Accessing Enum Values
- Speeding Up Enum
- Merging and Adding Functionality to Enum
Module 5. Generic Type
- Generic
- Generic and Classes
- Generic Constraint
- Generic with Construction Functions
- Generic Outside Class
- Generic Comparison
- Generic Inference
- Generic Default
- Generic and keyof
Module 6. Functions
- Definition
- Named and Anonymous Functions
- Function and Inference Variables
- Generic Return Type, Optional Parameter and Default Value
- Functions in Classes
- Function Relationship with “this”
- Function and Inference Return Types
- Overload Functions to Enrich your Definition
- String Literal and Overload Function
- Types of Function Headers
Module 7. Mapped Type
- Definition and Usages
- Immutable Data with Readonly
- Partial
- Nullable
- Pick
- Omit
- Record
- Extract
- Exclude
- ReturnType
- Custom Mapped Type
Module 8. Objects
- Introduction to TypeScript’s Many Objects
- The Curly Braces Object
- New Object
- Lowercase vs UpperCase Object
Module 9. Index Signature
- Definitions and Usages
- String or Number Indexes
- Members of the Same Type
- Keys with Constants and Symbols
Module 10. Variables Advanced
- Intersecting with Types, Interfaces, and Generics
- Literal Type, Narrowing, and Const
- Union with Types and Tagged Union
- Const Assertion for Literal Values
- Tuple For Type and Length Arrays
- Casting to Change Type
- keyof to Validate a Member’s Name
- On How TypeScript Handles Variance
- How to Narrow a Type with the in Operator
- What is a Conditional Type?
- TypeScript Inference
- Set and Dictionary
Module 11. Exception
- Creating an Exception
- Catching Synchronous Exceptions
- Catching Asynchronous Exceptions
- Assertion Functions
Module 12. Alias
- Aliases with the Structural Behavior of TypeScript
- Aliases with Type
- Aliases with Generic Types and Recursivity
- The Differences between Type Aliases and Interfaces
- Branded Alias
Module 13. Type Checking
- Comparing Variables
- Type Checking with typeof
- Type Checking with instanceof
- Type Checking and Interface with a Discriminator
- Type Checking with Intersections
- Type Checking an Interface with Custom User-Defined Type Guard
- Optional Chaining and Optional Element Access
- Nullish Coalescing
- Assertion Functions
Module 14. Iterators
- Iterating an Object’s Keys with For-In
- Iterating an Object with Standard For/While
- Iterating and the Asynchronous Loop
Module 15. Manipulating Objects and Array
- Typing an Array
- Array with a Skipped Value
- Destructuring an Array
- Destructuring an Object
- The Spread Operator and Arrays
- The Spread Operator and Objects
- The Bang Operator
ITTA is a partner of a continuing education fund dedicated to temporary workers. This fund can subsidize your training, provided that you are subject to the “Service Provision” collective labor agreement (CCT) and meet certain conditions, including having worked at least 88 hours in the past 12 months.
Understanding TypeScript and Why to Adopt It in Your Projects
What is TypeScript?
TypeScript is a superset of JavaScript, designed to make the development of large applications more structured and maintainable. Simply put, TypeScript adds a layer of static typing that allows code to be checked before execution, making errors easier to detect and fix. If you wish to learn TypeScript, you will quickly discover that its approach offers greater robustness compared to JavaScript while remaining compatible with it.
Why TypeScript and Not JavaScript?
The question is often asked: why switch to TypeScript when JavaScript is so widespread? One of the answers lies in static typing. In JavaScript, variables are dynamically typed, which can lead to hard-to-spot errors. TypeScript, with its strict typing, allows you to define types in advance, which not only improves code readability but also error detection. Additionally, support for auto-completion and development tools makes TypeScript programming more enjoyable, especially on large codebases.
The Advantages of TypeScript
The advantages of TypeScript are not limited to error correction. Here are some key benefits:
- Better maintainability: By specifying types, you can quickly understand the role of each variable in the code. This also makes team collaboration easier.
- JavaScript compatibility: TypeScript compiles into JavaScript, meaning you can use it with any existing JavaScript project.
- Rich development tools: Thanks to TypeScript, IDEs and code editors can provide advanced features such as auto-completion, increasing your productivity.
- Optional typing: You can gradually start using TypeScript by adding type annotations where they are most useful.
TypeScript Training: What You Will Learn
In the TypeScript training, you will cover several essential concepts, starting with the basics of variables, static typing, and how TypeScript integrates into an existing JavaScript project.
Basics of Variables and Typing
The first module will teach you how to declare variables and use the different types available in TypeScript. You will also understand why it is important to avoid using the generic “any” type, which can quickly become a source of confusion in a project.
Generics and Advanced Functions
The module on generics will enable you to handle more flexible and reusable functions. You will see how to use them effectively with classes and functions. In parallel, you will explore the subtleties of functions in TypeScript, including function overloading and different return types.
Objects, Arrays, and Advanced Typing
One of TypeScript’s most powerful aspects lies in its ability to handle objects and arrays very precisely through mapped types. You will learn to use features such as Readonly or Partial to manipulate objects securely and efficiently.
Why Learn TypeScript?
Learning TypeScript is especially relevant for developers looking to create complex and maintainable applications. By choosing a TypeScript course, you will gain expertise that will save you time during development while improving the quality of your code.
TypeScript is not just a trend; it’s a powerful tool used by leading companies to improve the quality of their codebases.
If you’re looking to enhance your web development skills, TypeScript is a logical step after JavaScript. This TypeScript course will give you all the tools to master this programming language and integrate it effectively into your projects.
Learning TypeScript is a smart decision for any developer looking to improve productivity and project quality.