获取 TypeScript

1.安装 TypeScript
$ npm install -g typescript
2.验证 TypeScript
$ tsc -v 
# Version 4.0.2
3.编译 TypeScript 文件
$ tsc helloworld.ts
# helloworld.ts => helloworld.js

  

posted @ 2020-09-21 22:27  文采呱呱  阅读(138)  评论(0编辑  收藏  举报