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

Add default export to type definitions. fixes #281 #287

Merged
merged 1 commit into from
Jun 30, 2022

Conversation

miguelcobain
Copy link
Contributor

@RangerMauve turns out this was only a problem on typescript.
Because it didn't have a default export, we had to do

import { EventEmitter2 } from 'eventemitter2';

With the default export declaration, we can just do

import EventEmitter from 'eventemitter2';

This is a breaking change only for typescript users.

@miguelcobain
Copy link
Contributor Author

@RangerMauve anything missing here that I can help with?

Copy link
Contributor

@RangerMauve RangerMauve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops. Thanks for the ping, just got lost in the backlog 😁

@RangerMauve RangerMauve merged commit b1fe331 into EventEmitter2:master Jun 30, 2022
@RangerMauve
Copy link
Contributor

Out in 6.4.6, thanks for the fix!

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

Successfully merging this pull request may close these issues.

None yet

2 participants