- 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
- Learning LibGDX Game Development(Second Edition)
- Vue.js前端開發基礎與項目實戰
- 程序員面試算法寶典
- Learn WebAssembly
- 云計算通俗講義(第3版)
- 飛槳PaddlePaddle深度學習實戰
- 前端HTML+CSS修煉之道(視頻同步+直播)
- 劍指大數據:企業級數據倉庫項目實戰(在線教育版)
- Clojure for Machine Learning
- 多媒體技術及應用
- Python 3快速入門與實戰
- Node.js實戰:分布式系統中的后端服務開發
- Learning Cocos2d-JS Game Development
- 和孩子一起學編程:用Scratch玩Minecraft我的世界
- 大話代碼架構:項目實戰版