Support for external helpers libraries

Keyboard Shortcuts

In version 2.1, TypeScript allows to use a helpers library, tslib, to use several functions such as extends, assign, awaiter and many more. In this video we’ll show you how to get it installed, compiled and an example of where this kind of library could b

- [Instructor] There are several instances where you…need to use some functions that aren't…supported in TypeScript, for example,…if you call the React component before the…introduction of the helper functions,…you wouldn't be able to use extends and class.…In version 2.1, TypeScript allows to use…a Helpers Libraries, tslib, to use several functions…such as extends, assign, awaiter and many more.…In this video, we'll show you how to get it installed,…compiled, and an example of where…this kind of library could be used.…

So the first thing you want to do…is get into bash, and do an npm init.…Most people should be fairly familiar with npm init,…but if you're not, go into the documentation of Node.js…and you'll find more information on it.…So you can hit Enter here, again,…and then on the description you can type anything you want,…but I'll just do typescipt course.…That's okay.…Test command, we're good.…

Author

Released

4/10/2017

TypeScript is a newer Microsoft language built on JavaScript that is finding wide adoption in the Microsoft, Google, and Angular communities. Like many things JavaScript these days, TypeScript is changing rapidly as it grows. This course introduces the latest enhancements of this rapidly evolving language including kinds of types, approaches for interacting with types, and more.