Learn TypeScript 3 by Building Web Applications
上QQ阅读APP看书,第一时间看更新

Summary

In this chapter, you have built your very first web application with TypeScript.

TodoIt is quite basic, but by building it you should now have a better understanding of how useful TypeScript is during development and how easy it is to configure its compiler through tsconfig.json. Along the way, you have learned about some additional TypeScript concepts, such as type declarations, type annotations, arrays handling, the null special type, the as cast operator, lambda expressions, and the different types of loops supported in TypeScript.

Also, you should now have a good understanding of npm, package.json, dependency management, and defining and executing scripts with npm.

We have explained what Browsersync is and how to integrate it into your project to get live reloading during development.

In addition, we have seen how to use VS Code to develop with TypeScript and how to use it to debug your applications easily. You have also discovered how to leverage the web browser console, the debugger, and what source maps are and how to generate them using TypeScript.

In the next chapter, we will revisit the TodoIt application to improve it using classes and interfaces.