当前位置:网站首页>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 语言服务
边栏推荐
- grep command written test questions
- UserAgent resolution
- 「APIO2010」巡逻 题解
- HTC using official firmware as bottom bag made ROM brush card bag tutorial
- Shell script quick start to actual combat -02
- 登录业务实现(单点登录+微信扫码+短信服务)
- uni-app中的renderjs使用
- Structure of the actual combat battalion module eight operations
- Niuke.com brush questions (1)
- Efficient Concurrency: A Detailed Explanation of Synchornized's Lock Optimization
猜你喜欢

C#中引用类型的变量做为参数在方法调用时加不加 ref 关键字的不同之处

focus on!Haitai Fangyuan joins the "Personal Information Protection Self-discipline Convention"

STM32 full series development firmware installation guide under Arduino framework

二叉树非递归遍历

Federated Learning: Multi-source Knowledge Graph Embedding in Federated Scenarios

The article you worked so hard to write may not be your original

Document management and tools in the development process

Write a database document management tool based on WPF repeating the wheel (1)

老牌音乐播放器 WinAmp 发布 5.9 RC1 版:迁移到 VS 2019 完全重建,兼容 Win11

网易云信圈组上线实时互动频道,「破冰」弱关系社交
随机推荐
Binary tree non-recursive traversal
A few permanent free network transmission, convenient and simple (Intranet through tutorials)
Realize serial port receiving data based on STM32 ring queue
Collation of knowledge points in Ningbo University NBU IT project management final exam
#yyds dry goods inventory# Interview must brush TOP101: the entry node of the ring in the linked list
Talking about the algorithm security of network security
Qualcomm cDSP simple programming example (to query Qualcomm cDSP usage, signature), RK3588 npu usage query
STM32 full series development firmware installation guide under Arduino framework
SQL27 View user details of different age groups
Several methods for deleting specified elements in Golang slices
#yyds干货盘点# 面试必刷TOP101:链表中环的入口结点
A high-quality WordPress download site template theme developed abroad
server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none failed
高效并发:Synchornized的锁优化详解
Learn about C# anonymous methods
Embedded development has no passion, is it normal?
【核心概念】图像分类和目标检测中的正负样本划分以及架构理解
网易云信圈组上线实时互动频道,「破冰」弱关系社交
"SDOI2016" Journey Problem Solution
A shortcut to search for specific character content in idea