Skip to content

Type imports fail with ^1.4.0 #953

@delucis

Description

@delucis

With 1.3.2 it was possible to import type { PeerJSOption } from "peerjs", but this now fails with the following TypeScript error:

Module '"peerjs"' has no exported member 'PeerJSOption'. Did you mean to use 'import PeerJSOption from "peerjs"' instead?

But the default export is not PeerJSOption but the Peer class. Is there a way to workaround this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions