Allow JavaScript files to be a part of your program allowJs": true (ok)
tsconfig.json
{
"compilerOptions": {
"target": "es2016",
"module": "ES6",
"baseUrl": "./",
"paths": {
"@models/*": [
"src/models/*"
],
},
"allowJs": true,
"declaration": true,
"outDir": "./dist",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true
}
}
PreviousDefinitelyTyped (@types)NextTrình duyệt không có require, nhưng Node.js thì có. Với Browserify để trình duyệt cũng có (ok)
Last updated