Skip to content

Conversation

lukeed
Copy link
Collaborator

@lukeed lukeed commented May 14, 2021

This is a "might as well" for the next major anyway.
The main motivation is for TypeScript definitions and/or Intellisense.

Without this change, and with the current definitions, then both modules will always throw a type error (or lack a signature) when using import statements.

If the definitions changed to be ESM-compliant, then require usage for CommonJS would throw type error (or lack a signature).

Named exports make all variants work in harmony

@lukeed lukeed requested a review from terkelg May 14, 2021 22:07
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.

2 participants