这是我的tsconfig文件
{
"compilerOptions": {
"target": "es2015",
"module": "es2015",
"moduleResolution": "node",
"jsx": "react",
"outDir": "artifacts",
"rootDir": "src",
"allowSyntheticDefaultImports": true,
"noImplicitAny": true,
"preserveConstEnums": true,
"allowJs": false,
"sourceMap": true,
"noImplicitReturns": true,
"noUnusedParameters": true,
"noUnusedLocals": true,
"skipLibCheck": true,
},
"filesGlob": [
"typings/index.d.ts",
"src/**/*.ts",
"src/**/*.tsx"
],
"types": [
"react",
"react-native",
"jest"
],
"exclude": [
"node_modules",
"android",
"ios",
"build",
],
"compileOnSave": false
}
这是文件结构
dir
|
|--src
| |
| |--index.d.ts
|
|--tsconfig.json
我确实键入了"src/index.d.ts",
而不是"typings/index.d.ts"
,但无法正常工作。
我做错了什么?
对此的任何帮助将不胜感激。