Skip to content

[5.0.0] built-in .d.ts is missing some(or many) types from @types/webpack #11630

@AviVahl

Description

@AviVahl

Bug report

Encountered this while trying to upgrade my loader to webpack@5.
In webpack@4, with @types/webpack, I could create a fully typed loader.
In webpack@5, there's aren't any exported types for the Loader or the LoaderContext

What is the expected behavior?

Auto generate (?) or just include these interfaces:
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/6a1c6a5567fa177396fa802b2367ec34e1028eea/types/webpack/index.d.ts#L2116

Other relevant information:
webpack version: 5.0.0
Node.js version: 14.13.1
Operating System: Fedora 32
Additional tools:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions