- TypeScript Blueprints
- Ivo Gabe de Wolff
- 154字
- 2021-07-14 10:59:27
What is TypeScript?
The TypeScript language looks like JavaScript; it is JavaScript with type annotations added to it. The TypeScript compiler has two main features: it is a transpiler and a type checker. A transpiler is a special form of compiler that outputs source code. In case of the TypeScript compiler, TypeScript source code is compiled to JavaScript code. A type checker searches for contradictions in your code. For instance, if you assign a string to a variable, and then use it as a number, you will get a type error.
The compiler can figure out some types without type annotations; for others you have to add type annotations. An additional advantage of these types is that they can also be used in editors. An editor can provide completions and refactoring based on the type information. Editors such as Visual Studio Code and Atom (with a plugin, namely atom-typescript) provide such features.
- Dynamics 365 for Finance and Operations Development Cookbook(Fourth Edition)
- Java EE 6 企業(yè)級應用開發(fā)教程
- Python機器學習:數據分析與評分卡建模(微課版)
- 密碼學原理與Java實現(xiàn)
- 深入淺出Prometheus:原理、應用、源碼與拓展詳解
- Rust編程從入門到實戰(zhàn)
- Flask Web開發(fā)入門、進階與實戰(zhàn)
- Learn Programming in Python with Cody Jackson
- Python程序設計
- Mastering Linux Network Administration
- 程序是怎樣跑起來的(第3版)
- C語言程序設計實驗指導 (第2版)
- 學習OpenCV 4:基于Python的算法實戰(zhàn)
- 小型編譯器設計實踐
- C++語言程序設計