typescript 学习

 

 

 https://github.com/iamshaunjp/typescript-tutorial

 

 

typescript是一种编程语言,可以用作JavaScript的替代品,现在它实际上被称为超集JavaScript语言

 

 

一   安装 TypeScript

 

 

npm install -g typescript

 

 

1.1  我们需要编译的时候就执行

tsc sandbox.ts

 

 

 

 他会根据ts文件编译到同名的js文件

 

1.2  让他处于一直监听状态

tsc sandbox.ts -w

 

 

 

 

 

 

 

 

 

Here are some websites with TypeScript examples:

  1. TypeScript documentation: https://www.typescriptlang.org/docs
  2. TypeScript Playground: https://www.typescriptlang.org/play
  3. React with TypeScript example: https://github.com/Microsoft/TypeScript-React-Starter
  4. Angular with TypeScript example: https://angular.io/guide/typescript-configuration
  5. Node.js with TypeScript example: https://wanago.io/2018/12/03/typescript-express-tutorial-routing-controllers-middleware/
  6. Express with TypeScript example: https://developer.okta.com/blog/2018/11/15/node-express-typescript

These resources can help you learn TypeScript and provide examples for different use cases.

 

posted @ 2023-03-26 17:10  漫漫长路</>  阅读(14)  评论(0编辑  收藏  举报