Skip to content

Incorrect typings for index.d.mts #281

@JAD3N

Description

@JAD3N

I was just updating some dependencies of some of my projects and noticed I was getting a new error with the latest eventemitter3 release.

EventEmitter' cannot be used as a value because it was imported using 'import type'.

The index.d.mts file seems to be re-exporting only the type of the EventEmitter class, so TypeScript will not treat it as a value that can be instantiated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions