当前位置:网站首页>"21 days proficient in typescript-3" - install and build a typescript development environment md
"21 days proficient in typescript-3" - install and build a typescript development environment md
2022-07-05 16:26:00 【Do front-end Pinellia ternata】
Hello everyone , I am Pinellia ternata , A sand carving programmer who just started writing . If you like my article , Can pay attention to give the thumbs-up
Add me WeChat :frontendpicker, Learn to communicate together , Become a better Engineer ~ Official account : Pinellia ternata ,
Column address
In order to make the world not difficult to learn TypeScript, The author is reading the official documents ,MDN On the basis of , With Meeting and use For the fundamental goal , Take you to learn TypeScript Basic knowledge of ! This column , No article cap , Always more , Until everyone learns .
https://blog.csdn.net/shangyanaf/category_11822476.html
install TypeScript
As a front-end Developer , We can use the following command overall situation Fast installation TypeScript.
npm install typescript -g
Open the command line window , for example windows Under the cmd.


tsc
TypeScript Command line tools are provided tsc.
TypeScript Files cannot be run directly in the browser , We need to convert it into JavaScript file .
tsc The role of will be TypeScrpt file **(.ts)** Translate it into JavaScript file (.js).
Verify that the installation was successful / View version number :
tsc -V

Editor
In addition to command line tools ,TypeScript The editor and IDE The function of , Including code completion 、 Interface tips 、 Jump to definition 、 Reconstruction, etc .
Mainstream editors support TypeScript, Here I recommend Visual Studio Code(VsCode).VsCode Built in right TypeScript Grammar check .
If you use it often VSCode, You may occasionally put your mouse over variables , here VSCode A prompt box will be given above the variable .
The effect is shown in the red box below , Tips let userName:string,userName yes string Type of . This is actually TS Type inference of .

Get another editor or IDE Yes TypeScript Support for :
- Sublime Text
- WebStorm
- Vim
- Emacs
- Eclipse
- Atom
- [Visual Studio 2019](https://marketplace.visualstudio.com/search?term=TypeScriptTeam&target=VS&category=All categories&vsVersion=vs2019&sortBy=UpdatedDate)
- [Visual Studio 2017](https://marketplace.visualstudio.com/search?term=TypeScriptTeam&target=VS&category=All categories&vsVersion=vs15&sortBy=UpdatedDate)
typeScript Online tools
If you are practicing TypeScript grammar , You can use it directly TypeScript Online tools provided .
https://www.typescriptlang.org/zh/play

边栏推荐
- This article takes you through the addition, deletion, modification and query of JS processing tree structure data
- Coding devsecops helps financial enterprises run out of digital acceleration
- Solve the Hanoi Tower problem [modified version]
- 求解汉诺塔问题【修改版】
- Cartoon: what is MapReduce?
- 用键盘输入一条命令
- 对象和类的关系
- CISP-PTE之PHP伪协议总结
- Relationship between objects and classes
- yarn 常用命令
猜你喜欢
随机推荐
DataArts Studio数据架构——数据标准介绍
Transaction rollback exception
17. [stm32] use only three wires to drive LCD1602 LCD
How to use FRP intranet penetration +teamviewer to quickly connect to the intranet host at home when mobile office
对象和类的关系
The database of the server is not connected to 200310060 "unknown error" [the service is up, the firewall is off, the port is on, and the netlent port is not connected]
ES6 deep - ES6 class class
数据湖(十四):Spark与Iceberg整合查询操作
Solve the Hanoi Tower problem [modified version]
Relationship between objects and classes
How can programmers improve their situation?
新春限定丨“牛年忘烦”礼包等你来领~
Data Lake (XIV): spark and iceberg integrated query operation
【网易云信】超分辨率技术在实时音视频领域的研究与实践
Batch update in the project
践行自主可控3.0,真正开创中国人自己的开源事业
Obj resolves to a set
2020-2022两周年创作纪念日
scratch五彩糖葫芦 电子学会图形化编程scratch等级考试三级真题和答案解析2022年6月
Cs231n notes (medium) -- applicable to 0 Foundation


![17. [stm32] use only three wires to drive LCD1602 LCD](/img/c6/b56c54da2553a451b526179f8b5867.png)






