Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type imports fail with ^1.4.0 #953

Closed
delucis opened this issue May 13, 2022 · 3 comments
Closed

Type imports fail with ^1.4.0 #953

delucis opened this issue May 13, 2022 · 3 comments
Labels

Comments

@delucis
Copy link

delucis commented May 13, 2022

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?

github-actions bot pushed a commit that referenced this issue May 13, 2022
## [1.4.3](v1.4.2...v1.4.3) (2022-05-13)

### Bug Fixes

* **typings:** export interfaces ([979e695](979e695)), closes [#953](#953)
@github-actions
Copy link

🎉 This issue has been resolved in version 1.4.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

@jonasgloning
Copy link
Member

Hey @delucis. Thanks for the report!
Patch should be on npm by now, sorry for breaking your stuff.

@delucis
Copy link
Author

delucis commented May 13, 2022

Wow, that was fast! Thanks so much ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants