{
...
"typeAcquisitionDefinition": {
"properties": {
"typeAcquisition": {
"type": "object",
"description": "Auto type (.d.ts) acquisition options for this project. Requires TypeScript version 2.1 or later.",
"properties": {
"enable": {
"description": "Enable auto type acquisition",
"type": "boolean",
"default": false
},
"include": {
"description": "Specifies a list of type declarations to be included in auto type acquisition. Ex. [\\"jquery\\", \\"lodash\\"]",
"type": "array",
"items": {
"type": "string"
}
},
"exclude": {
"description": "Specifies a list of type declarations to be excluded from auto type acquisition. Ex. [\\"jquery\\", \\"lodash\\"]",
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
},
...
}
example
{
"typeAcquisition": {
"enable": true,
"include": ["react"],
"exclude": ["leftpad"]
}
enable
true
.enable
to false
to completely disable type acquisition.exclude
exclude
array. Items in this list will not have their types acquired or included in the project. However, minified files (as described above) will still be excluded from the project.include
include
will add types to the project, even if they're not otherwise used.