Summary

In this chapter, we have learned how to work with functions in depth. We started with a quick recap of some basic concepts and then moved on to some lesser-known function features and use cases.

Once we learned how to work with functions, we focused on the use of callbacks, promises, and generators to take advantage of the asynchronous programming capabilities of TypeScript.

In the next chapter, we will look at how to work with classes, interfaces, and other object-oriented programming features of the TypeScript programming language.

Get Learning TypeScript 2.x - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.