即时编译、运行 typescript 代码

bash

npm i ts-node -g
npm i nodemon -g

index.ts

const foo: string = 'Hello'
console.log(foo)

bash

nodemon index.ts

posted on 2021-09-10 09:58  aisowe  阅读(117)  评论(0编辑  收藏  举报

导航