Skip to content

Should we set '"types": []' for 'tsc init'? #39354

Open

Description

Very few people understand the automatic @types inclusion behavior, it often causes packages to conflict, and it is often a program construction performance foot-gun.

Maybe we should output a field like this in compilerOptions.

// Add packages with global definitions that can't be imported here.
// Remove entirely to auto-include all '@types' packages.
"types": []

What do others here think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    CommittedThe team has roadmapped this issueIn 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