当前位置:网站首页>Components of TypeScript
Components of TypeScript
2022-07-31 22:34:00 【HUAWEI CLOUD】
TypeScript Language, part for three main layer.Each of these layers are divided into sub layers or components.在下图中,We can see three layer and its internal components.这些层是:
Language
TypeScript 编译器
TypeScript 语言服务

1. Language
它具有 TypeScript 语言元素.It contains grammar、Keywords and type annotation elements such as.
2. TypeScript 编译器
TypeScript 编译器 (TSC) 将 TypeScript Program into the JavaScript 代码.It also performs our TypeScript 代码到 JavaScript 代码的解析和类型检查.

Browser does not support direct execution TypeScript 代码.所以用 TypeScript Written procedures must be used JavaScript Equivalent to rewrite,It supports directly in the browser to execute code.为此,TypeScript Comes with a called“tsc”的 TypeScript 编译器.当前版本的 TypeScript 编译器默认支持 ES6.It compiles any module in the source code,如 ES6、SystemJS、AMD 等.
我们可以通过本地、Global or at the same time the use of anynpm包安装 TypeScript 编译器.安装完成后,We can run on the command line“tsc”命令来编译 TypeScript 文件.
##Start the installation npm install typescript -g例子:
tsc helloworld.ts // 它将 TS 文件 helloworld 编译成 helloworld.js 文件. 编译器配置
TypeScript 编译器配置在tsconfig.json文件中给出,如下所示:
{ "compilerOptions": { "declaration": true, "emitDecoratorMetadata": false, "experimentalDecorators": false, "module": "none", "moduleResolution": "node", "noFallthroughCasesInSwitch": false, "noImplicitAny": false, "noImplicitReturns": false, "removeComments": false, "sourceMap": false, "strictNullChecks": false, "target": "es3" }, "compileOnSave": true } 3. TypeScript 语言服务
边栏推荐
- [Code Hoof Set Novice Village 600 Questions] Merge two numbers without passing a character array
- Flex layout in detail
- Memblaze发布首款基于长存颗粒的企业级SSD,背后有何新价值?
- Go mode tidy reports an error go warning “all” matched no packages
- PHP三元(三目)运算符
- Chapter Six
- 「SDOI2016」征途 题解
- Unity - LineRenderer show a line
- VOT2021 game introduction
- MATLAB program design and application 2.4 Common internal functions of MATLAB
猜你喜欢

一款国外开发的高质量WordPress下载站模板主题
![[Code Hoof Set Novice Village 600 Questions] Merge two numbers without passing a character array](/img/4d/038e6cd6ecad19934122cff89f4d76.png)
[Code Hoof Set Novice Village 600 Questions] Merge two numbers without passing a character array
不知道该怎么办的同步问题

Pytest first experience

PCB叠层设计

Pytest初体验

20. Support vector machine - knowledge of mathematical principles
![[Code Hoof Set Novice Village 600 Questions] Leading to the combination of formulas and programs](/img/91/63d4f7869e0a55d19701c5ca5c9ed8.png)
[Code Hoof Set Novice Village 600 Questions] Leading to the combination of formulas and programs

财务盈利、偿债能力指标

基于STM32 环形队列来实现串口接收数据
随机推荐
Bika LIMS open source LIMS set - use of SENAITE (detection process)
VOT2021比赛简介
支付模块实现
The uniapp applet checks and prompts for updates
PCB叠层设计
The principle of ReentrantLock (to be continued)
ECCV 2022 Huake & ETH propose OSFormer, the first one-stage Transformer framework for camouflaging instance segmentation!The code is open source!...
财务盈利、偿债能力指标
TestCafeSummary
[Intensive reading of the paper] iNeRF
IDA PRO中汇编结构体识别
find prime numbers up to n
如何减少软件设计和实现之间鸿沟
网易云信圈组上线实时互动频道,「破冰」弱关系社交
登录业务实现(单点登录+微信扫码+短信服务)
PHP三元(三目)运算符
信息学奥赛一本通 1941:【07NOIP普及组】Hanoi双塔问题 | 洛谷 P1096 [NOIP2007 普及组] Hanoi 双塔问题
ThreadLocal
UVM RAL model and built-in seq
GateWay implements load balancing