Book Image

TypeScript for JavaScript Developers [Video]

By : Anton Selin
5 (1)
Book Image

TypeScript for JavaScript Developers [Video]

5 (1)
By: Anton Selin

Overview of this book

TypeScript and JavaScript are must-know languages for many web developers. While JavaScript is the de facto choice for web development, this course will show you why you need TypeScript to make your code more efficient. This course is designed to get you started with TypeScript and help you implement a variety of real-world coding examples. In this course, you will learn how to convert several JavaScript code samples into TypeScript and master how these relate to JavaScript. You will learn the essentials of TypeScript such as objects, functions, and classes and appreciate the similarities and differences between the JavaScript and TypeScript syntaxes. In addition, you will learn how to configure Typescript projects according to your needs and implement best practices. By the end of this course, you will be confident to start your projects in TypeScript. You will have the skills you need to utilize TypeScript for writing better frontends for your web apps. The code bundle for this course is available at - https://github.com/PacktPublishing/TypeScript-for-JavaScript-Developers
Table of Contents (6 chapters)
Chapter 4
Achieving Code Reusability Using Functions and Generics
Content Locked
Section 6
Applying Limitations Using Generic Constraints
In this video, we will learn how to create better functions by applying generic constraints to function arguments.