Paths

Typescript Core Language

TypeScript is a strict syntactical superset of JavaScript that adds optional static typing to the language. It was developed and maintained by Microsoft and may be used to develop JavaScript applications for client-side or server-side (Node.js) execution.
... Read moreRead less

TypeScript: Getting Started

Description

Creating great web applications requires great JavaScript code. TypeScript helps you create great JavaScript code. In this course, Getting Started with TypeScript, you'll learn how to create browser applications faster and with fewer errors using a powerful and fun programming language. First, you'll learn how to configure TypeScript projects. Next, you'll explore how to create and use your own types. Finally, you'll discover how to get strong typing support for just about any JavaScript library you can imagine. When you're finished with this course, you'll have a foundational understanding of TypeScript's most important features, as well as the skills you need to begin building client-side web applications and NodeJS applications with TypeScript.

Table of contents

Course Overview

Installing TypeScript and Configuring a Project

Taking Advantage of Built-in Types

Writing Better Functions with TypeScript

Creating and Using Custom Types

Creating and Consuming Modules

Being More Productive with Type Declaration Files

Intermediate

Take a deeper dive into TypeScript through advanced configurations, debugging, decorators, and types.

Creating Object-oriented TypeScript Code

Description

TypeScript supports many different ways to define and create objects which can be confusing especially when you're new to the language. Should you use a constructor function, Object.create(), classes, a coding pattern, or some other technique when creating objects? In this course, Creating Object-oriented TypeScript Code, you'll learn different ways to create objects while focusing on object-oriented programming (OOP) techniques that can be used to maximize reuse and enhance productivity. First, you'll explore the core principles of object-oriented programming, such as encapsulation, polymorphism, inheritance, and abstraction, and see how they can be applied and used. Next, you'll discover how to define and instantiate classes in TypeScript, understand what members can be added to a class and the role they play. Then, you'll delve into how inheritance can be used to promote reuse, and what an abstract class is and why you'd use one. Finally, you'll learn about the role of interfaces and how they can be used to create code contracts that drive consistency across a set of objects and enable polymorphic behavior. When you're finished with this course, you'll have the skills and knowledge needed to build robust object-oriented applications using the TypeScript language and understand when and why to apply object-oriented programming principles.

Table of contents

Course Overview

Introduction to Object-oriented Programming in TypeScript

Classes and Objects

Inheritance and Abstraction

Interfaces and Polymorphism

Putting It All Together

Creating Asynchronous TypeScript Code

Description

Asynchronous code makes the web come alive, and you’ll want to know how to identify it, respond to it, and write it. In this course, Creating Asynchronous TypeScript Code, you will learn to write asynchronous code with TypeScript, following async practices with callbacks, promises, and the async/await pattern.

365体育足球First, you will explore how to identify when to write asynchronous code. Next, you will learn how to pass callback functions as parameters to functions. Finally, you will discover how to create and resolve/reject promises, and create and handle asynchronous functions with async/await.

365体育足球By the end of this course you will be able to apply asynchronous coding patterns as you develop with TypeScript.

Table of contents

Course Overview

Getting Started with Asynchronous Code

Identify When to Write Asynchronous Code

Create and Pass Callback Functions as Parameters

Create, Resolve, Reject, and Respond Promises

Create and Respond to Asynchronous Logic with the Async/Await Pattern

Configuring, Compiling, and Debugging TypeScript Projects

Description

365体育足球TypeScript is a powerful language, but configuring and compiling it is much more challenging than with plain JavaScript.

In this course, Configuring, Compiling, and Debugging Typescript Projects, you’ll gain the ability to efficiently and effectively set up and debug TypeScript projects, saving time for your team and money for your employer.

365体育足球First, you’ll learn how to compile TypeScript and how to interpret the input and output. Next you’ll explore where and how to configure the TypeScript compiler for maximum productivity. Finally, you’ll discover how to debug and lint TypeScript projects, ensuring that the development process will be smooth from beginning to end.

When you're finished with this course, you will have the skills and knowledge of TypeScript needed to set up TypeScript for compilation of multi-developer projects, or to integrate in these projects.

Software required: TypeScript, Node.js, VSCode

Table of contents

Course Overview

Scaffolding an Environment for TypeScript Compilation

Configuring the TypeScript Compiler

Installing Type Declaration Files

TypeScript Debugging

Course Summary

Using TypeScript Modules

Description

365体育足球Are you a front-end professional who needs to fully understand and utilize TypeScript's module system to write reusable, "Don't Repeat Yourself (DRY)" code? In this course, Using TypeScript Modules, you will gain foundational knowledge of TypeScript's module system, including how to get started by creating a brand new TypeScript project and compiling TypeScript into JavaScript. First, you will explore all of the different ways that code can be imported into, or exported from, a TypeScript module. Next, you will discover what ambient modules are and what they should be used for, as well as how to use third-party ambient modules that other developers have already created. Finally, you will learn how TypeScript resolves modules when the compiler encounters import statements in your code, and see how to output diagnostic information about the resolution process. When you are finished with this course, you will have the skills and knowledge of TypeScript modules needed to build modular and maintainable TypeScript applications.

Table of contents

Course Overview

Getting Started with TypeScript Modules

Creating Basic TypeScript Modules

Creating Ambient Modules

Understanding Module Resolution

Course Summary

Creating and Using Generics in TypeScript

Description

In order to fully harness the power of TypeScript, you need to take advantage of all the tools it provides for developing reusable, type-safe code. In "Creating and Using Generics in TypeScript", you will learn how to do more with less code. You will learn what generics are, how to recognize and use built-in generic types, and how to create your own generic functions, interfaces, and classes. When you are finished with this course, you will have a foundational understanding of TypeScript generics as well as the skills to begin using generics to build sophisticated web applications.

Table of contents

Course Overview

Understanding and Applying Built-in Generics

Generic Functions

Generic Interfaces and Classes

Creating and Using TypeScript Decorators

Description

When creating TypeScript projects, there are times when repeated functionality cannot be solved by inheritance. In this course, Creating and Using TypeScript Decorators, you will learn how to leverage TypeScript decorators to solve cross-cutting concerns in your application. First, you will learn how to implement basic decorators on functions, properties, and classes. Next, you will use single decorators to centralize logic within your application. Finally, you will combine multiple decorators to create an entity framework that allows you to share logic for a REST based API. When you’re finished with this course, you will have the skills and knowledge of TypeScript decorators needed to leverage AOP (Aspect-oriented Programming) within your project.

Table of contents

Course Overview

Introduction to TypeScript Decorators

Implementing TypeScript Decorators

Using Specialized Types and Language Features in TypeScript

Description

Most developers find it hard to learn and understand the more advanced features of TypeScript because the documentation and examples are often way too abstract and difficult to relate to the real world. In this course, Using Specialized Types and Language Features in TypeScript, you’ll learn how to deal with challenging problems that you will find in any significantly sized code base. First, you’ll explore options for differentiating types from each other at compile and run time. Next, you’ll discover how to create types that are inferred from other types and even generate new types from existing types. Finally, you’ll learn how to model your code to deal with custom iteration, infinite sequences, and metaprogramming with symbols. When you’re finished with this course, you’ll have the skills and knowledge of TypeScript needed to keep your code base performant, flexible, and type-safe.