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:
- TypeScript documentation: https://www.typescriptlang.org/docs
- TypeScript Playground: https://www.typescriptlang.org/play
- React with TypeScript example: https://github.com/Microsoft/TypeScript-React-Starter
- Angular with TypeScript example: https://angular.io/guide/typescript-configuration
- Node.js with TypeScript example: https://wanago.io/2018/12/03/typescript-express-tutorial-routing-controllers-middleware/
- 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.