tsconfig.json
(tsc
指定了输入文件时,tsconfig.json
无效)
{
"include": ["./*.ts"],
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"experimentalDecorators": true,
"allowJs": true,
"module": "commonjs",
"target": "es5",
"moduleResolution": "node",
"lib": ["es2015"],
"sourceMap": true,
"pretty": true,
"strictFunctionTypes": false,
"importHelpers": true
}
}
使用
TypeScript
编写node
,引进http
,fs
这些node
模块提示找不到
npm install @types/node -D
网友评论