Skip to content

Provide an API to load all types available in node_modules/ #1144

@wojpawlik

Description

@wojpawlik

Is your feature request related to a problem? Please describe.

I hoped https://npm.im/deno2node could sourceFile.fixMissingImports() to import fetch and AbortController ponyfills, but:

obraz

the JS language service doesn't aggressively include types for packages it can't tell you're using yet, because doing so would be a fairly substantial perf hit for not a lot of gain. (microsoft/TypeScript#29039 (comment))

Describe the solution you'd like

Provide a (Project) method for loading all types from all packages at the top-level of node_modules/.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions