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

Fix TypeScript export error #37

Merged
merged 1 commit into from
Jul 1, 2019
Merged

Fix TypeScript export error #37

merged 1 commit into from
Jul 1, 2019

Conversation

chocolateboy
Copy link
Contributor

This is a follow-up to #36, which introduced a TypeScript error in index.d.ts:

An export assignment cannot be used in a module with other exported
elements.

This was caused by a last-minute change from:

export default Emitter;

to:

export = Emitter;

This PR restores the ES6 export style (which still works with CommonJS require).

This is a follow-up to #36, which introduced a TypeScript error in
index.d.ts:

> An export assignment cannot be used in a module with other exported
> elements.

This was caused by a last-minute change from:

    export default Emitter;

to:

    export = Emitter;

This PR restores the ES6 export style (which still works with CommonJS
`require`).
@scottcorgan scottcorgan merged commit 4e6b2eb into scottcorgan:master Jul 1, 2019
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