[TYPESCRIPT] cài đặt package chạy trực tiếp ts, tsx, ts-node (ok)
C:\Users\Administrator\Desktop\typescript-decorators\package.json
{
"name": "learn-decorator",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"build": "tsc",
"start": "ts-node calculate-time.ts"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"@types/node": "^13.13.5",
"ts-node": "^8.10.1",
"typescript": "^3.9.2"
},
"dependencies": {
"reflect-metadata": "^0.1.13"
}
}
C:\Users\Administrator\Desktop\typescript-decorators\index.tsx
console.log('aaaaaaaaaaaa');
C:\Users\Administrator\Desktop\typescript-decorators\tsconfig.json

{
"compilerOptions": {
"target": "ES5",
"experimentalDecorators": true
}
}
Previous[TYPESCRIPT] tạo file tsconfig.json bằng lệnh (ok)NextObject for Three Dots, Array for Three Dots (ok)
Last updated