当前位置:网站首页>"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 .
边栏推荐
- 给自己打打气
- 服务器的数据库连不上了2003,10060“Unknown error“【服务已起、防火墙已关、端口已开、netlent 端口不通】
- sql中查询最近一条记录
- Flet教程之 11 Row组件在水平数组中显示其子项的控件 基础入门(教程含源码)
- List uses stream flow to add according to the number of certain attributes of the element
- 【毕业季】作为一名大二计科在校生,我有话想说
- Relationship between objects and classes
- APICloud云调试解决方案
- Single merchant v4.4 has the same original intention and strength!
- 《MongoDB入门教程》第04篇 MongoDB客户端
猜你喜欢
scratch五彩糖葫芦 电子学会图形化编程scratch等级考试三级真题和答案解析2022年6月
Codasip adds verify safe startup function to risc-v processor series
Mistakes made when writing unit tests
单商户 V4.4,初心未变,实力依旧!
Subclasses and superclasses of abstract classes
Li Kou today's question -729 My schedule I
Today's sleep quality record 79 points
Replknet: it's not that large convolution is bad, but that convolution is not large enough. 31x31 convolution. Let's have a look at | CVPR 2022
清晰还原31年前现场,火山引擎超清修复Beyond经典演唱会
Convert obj set to entity set
随机推荐
DeSci:去中心化科学是Web3.0的新趋势?
Five common negotiation strategies of consulting companies and how to safeguard their own interests
迁移/home分区
用键盘输入一条命令
漫画:什么是蓝绿部署?
Cheer yourself up
tf.sequence_mask函数讲解案例
英特尔第13代Raptor Lake处理器信息曝光:更多核心 更大缓存
HiEngine:可媲美本地的云原生内存数据库引擎
企业级备份软件Veritas NetBackup(NBU) 8.1.1服务端的安装部署
清晰还原31年前现场,火山引擎超清修复Beyond经典演唱会
Convert obj set to entity set
Seaborn draws 11 histograms
Find the root of the following equation by chord cutting method, f (x) =x^3-5x^2+16x-80=0
一些认知的思考
The difference between abstract classes and interfaces
写单元测试的时候犯的错
研发效能度量指标构成及效能度量方法论
List de duplication and count the number
【学术相关】多位博士毕业去了三四流高校,目前惨不忍睹……