Suggestion: add excludeTypeRoots to tsconfig · Issue #18588 · microsoft/TypeScript (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

@k8w

Description

@k8w

TypeScript Version: 2.4.0 / nightly (2.5.0-dev.201xxxxx)
2.5.2

It's a old issue that haven't resolve yet.

#17242 #17042

Resubmit this for old ones are closed.

Case

  1. Used many declaration in node_modules/@types
  2. @types/node bring some compile error (it is a frontend project, but @types/node is a dependency of other package)
  3. So it need to disable @types/node, while other

Suggestion

  1. Support excludeTypeRoots in tsconfig.json.
  2. excludeTypeRoots have higher prioiry than typeRoots