Summary

This chapter has thoroughly discussed the different language constructs in TypeScript. We covered all three of the type categories: primitive types, object types, and type parameters. Primitive types are ones that have been built into the language such as Number, Boolean, and String. Object types range from classes to modules and allow us to construct organized components in our applications. Type parameters allow us to create generic functions and objects that can be used to operate on a variety of types. TypeScript relies heavily on JavaScript's closures when it is generating the different object types. Next, we are going to be looking at the TypeScript compiler and its various options.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset