npm install --save @types/node
ts-node is a TypeScript execution engine and REPL for Node.js.
用法 ts-node foo.ts
之前:
tsc foo.ts
node foo.js
npm install --save @types/node
ts-node is a TypeScript execution engine and REPL for Node.js.
用法 ts-node foo.ts
之前:
tsc foo.ts
node foo.js