Oreilly - Introduction to TypeScript
by Kamran Ayub | Publisher: Packt Publishing | Release Date: January 2017 | ISBN: 9781786465207
Building practical, maintainable and scalable applications using TypeScriptAbout This VideoWork with the latest features of TypeScript 2.0Explore the various ins and outs of TypeScript, and enhance your coding experience with multiple coding environments Look into real-world obstacles faced and solutions that save the day during JavaScript's top TypeScript migrationIn DetailTypeScript is a superset of JavaScript that features a robust static type system to help build large-scale applications that are refactor-friendly, maintainable, and scalable. Take advantage of dozens of features from the next generations of JavaScript such as ES2015 and ES2016 without introducing a complex workflow to your project.This course will guide you from a beginner's level knowledge in JavaScript to being able to successfully start creating applications in TypeScript. You'll learn why TypeScript's tooling gives it a heavy advantage over other languages and see how JavaScript works underneath.The course begins with an introduction bringing you up-to-date on the state of the JavaScript ecosystem, where TypeScript fits into it, and why you'd want to leverage it. Then we move onto the basics of TypeScript such as setting up your development environment and learning basic language features by building a simple utility application and extending it with more features. Finally, we explore some practical use cases, such as converting plain-old JavaScript to TypeScript and you'll see how we tackle any issues faced such as external library references, dynamic typing, and more.By the end of the course, the viewer will be equipped to explain why TypeScript is advantageous for you and your team while also having a foundational knowledge of language features such as the type system, classes, interfaces, modules, and generics.
- Chapter 1 : Setting Up Your Development Environment
- The Course Overview 00:03:29
- Cross-Platform Tooling with Visual Studio Code 00:03:36
- Installing and Configuring Node.js 00:02:14
- Chapter 2 : Understanding TypeScript
- A Brief History of JavaScript 00:05:35
- Understanding JavaScript Types 00:07:32
- Advantages and Disadvantages of JavaScript 00:10:39
- Why TypeScript? 00:07:19
- Chapter 3 : What's New in TypeScript?
- Basic Features in TypeScript 00:17:15
- Advanced TypeScript Features 00:10:02
- Chapter 4 : Creating a Basic TypeScript Application
- Setting Up a Visual Studio Code Application 00:08:53
- Binary Math Refresher 00:07:33
- Implementing a Base64 Encoder 00:15:07
- Debugging in Visual Studio Code 00:06:28
- Chapter 5 : Implementing Multiple Encoders
- Adding an Encoder Interface 00:08:39
- Adding Support for Unicode Using Node.js 00:10:12
- Adding Another Encoder Implementation 00:13:57
- Chapter 6 : Refactoring Our Application with Confidence
- Choosing the Right Encoder with Options 00:19:00
- Refactoring for Testability 00:12:27
- Applying SOLID Principles 00:13:52
- Chapter 7 : Testing Our Application Using Jasmine
- Installing and Configuring Jasmine 00:12:23
- Writing Specifications in Jasmine 00:16:36
- Running Our Test Suite in Visual Studio Code 00:23:21
- Chapter 8 : Migrating a Browser Library
- Getting Draggabilly.js 00:07:00
- Setting Up Visual Studio Code 00:10:58
- Converting the Code 00:39:46
- Chapter 9 : Migrating a Hybrid Web App
- Todo Application Overview 00:05:56
- Setting Up Visual Studio Code 00:10:06
- Converting the Server-Side Code 00:44:54
- Converting the Client-Side Code 00:31:52
- Chapter 10 : Migrating a Node.js Application
- Node Library Overview 00:03:36
- Setting Up Visual Studio Code 00:05:42
- Writing Custom Declaration Files 00:31:59
- Converting the JS 1:07:15