Skip to content

Suggestion: add excludeTypeRoots to tsconfig #18588

Closed

Description

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    In DiscussionNot yet reached consensusSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions