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.…
Enter again keywords, author, you can type your name here…and license, we're good.…Is this okay?…Yep, we're good.…
Released
4/10/2017- Updating a local environment
- IDEs with TypeScript support
- Assigning null or undefined types
- Using control flow analysis
- Using tagged union types
- Using read-only properties
- Using mapped types
- Using objects spread and rest
- Leveraging external helper libraries
Share this video
Embed this video
Video: Support for external helpers libraries