- TypeScript Essentials
- Christopher Nance
- 166字
- 2021-08-05 17:43:26
Chapter 2. TypeScript Basics
One of the primary benefits of compiled languages is that they provide a more plain syntax for the developer to work with before the code is eventually converted to machine code. TypeScript is able to bring this advantage to JavaScript development by wrapping several different patterns into language constructs that allow us to write better code. We have talked a little bit about the static type system that TypeScript adds on top of JavaScript. Every explicit type annotation that is provided is simply syntactic sugar that will be removed during compilation, but not before their constraints are analyzed and any errors are caught. In this chapter, we will explore this type system in depth. We will also discuss the different language structures that TypeScript introduces. We will look at how these structures are emitted by the compiler into plain JavaScript. This chapter will contain a detailed look at each of these concepts:
- Types
- Functions
- Interfaces
- Classes
- Enums
- Modules
- Generic types
- Functional Python Programming
- Software Defined Networking with OpenFlow
- 復雜軟件設計之道:領域驅動設計全面解析與實戰
- Flask Web開發入門、進階與實戰
- 征服RIA
- HTML5+CSS3網站設計教程
- SQL Server 2016數據庫應用與開發
- Android開發三劍客:UML、模式與測試
- ScratchJr趣味編程動手玩:讓孩子用編程講故事
- Machine Learning for OpenCV
- Arduino電子設計實戰指南:零基礎篇
- C語言程序設計與應用實驗指導書(第2版)
- Java Web開發基礎與案例教程
- FusionCharts Beginner’s Guide:The Official Guide for FusionCharts Suite
- 網絡綜合布線與組網實戰指南