哪些类型模块可以为DOM节点提供定义文件?我认为这个定义会与安装TypeScript捆绑在一起,但事实并非如此,我也无法在流行的库中找到它,比如React,它依赖于它。有什么见解吗?
private textInput: HTMLInputElement; // error message: 'Cannot find name "HTMLInputElement"'
private userId: number;
tsconfig
{
"compileOnSave": false,
"buildOnSave": false,
"compilerOptions": {
"module": "commonjs",
"target": "esnext",
"jsx": "react",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"noImplicitAny": false,
"removeComments": false,
"sourceMap": false,
"inlineSourceMap": true,
"noEmitHelpers": true,
"importHelpers": true
},
"awesomeTypescriptLoaderOptions": {
"useBabel": true,
"useCache": false,
"emitRequireType": false
},
"exclude": [
"node_modules",
"dist"
]
}