Support for compilerOptions.types
See original GitHub issueGiven this tsconfig.json
:
{
"compilerOptions": {
"jsx": "react",
"moduleResolution": "node",
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"sourceMap": true,
"strictNullChecks": true,
"target": "es2015",
"types": [
"jest",
"node"
]
}
}
TypeDoc fails to run with the following error:
Error: Unknown option `types.0`.
Error: Unknown option `types.1`.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:6 (1 by maintainers)
Top Results From Across the Web
TSConfig Option: types - TypeScript
This feature differs from typeRoots in that it is about specifying only the exact types you want included, whereas typeRoots supports saying you...
Read more >Typescript 2.0. "types" field in tsconfig.json - Stack Overflow
As of TypeScript 2.* the 'tsconfig.json' has the following two properties available: { 'typeRoots': [], 'types': [] }.
Read more >Using tsconfig.json - TypeScript
See our full list of supported Compiler Options. The "files" property takes a list of relative or absolute file paths. The "include" and...
Read more >TypeScript configuration - Angular
It is a superset of JavaScript with design-time support for type safety and ... and Angular compiler options that all projects in the...
Read more >Understanding TypeScript Configuration Options
Contribute to manakuro/typescript-compiler-options-example development by creating an… ... Normally it will be used as type checking in JavaScript project.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
A quick patch is to add
typeRoots
andtypes
to the ignored compiler options. Though, for better support of future TypeScript versions, and an easier upgrade path, it’s best to switch to a whitelist.This appears to have been fixed with #449