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(types): export CJS types from ESM #6218

Open
wants to merge 2 commits into
base: v1.x
Choose a base branch
from

Conversation

remcohaszing
Copy link
Contributor

This prevents discrepancies between those from occurring.

See arthurfiorette/axios-cache-interceptor#778

This prevents discrepancies between those from occurring.
@arthurfiorette

This comment has been minimized.

@remcohaszing
Copy link
Contributor Author

You can’t use export * to re-export from a module that uses export =. But even if you could, that would be incorrect. Not all members of the axios static instance are exported from the axios ESM module as named exports.

The default export in index.d.ts is on line 67.

Copy link
Member

@jasonsaayman jasonsaayman left a comment

Choose a reason for hiding this comment

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

@remcohaszing thanks so much for this 🙌

@erkannt
Copy link

erkannt commented Mar 21, 2024

Have confirmed that this change would fix the issue for sciety/sciety. Eagerly awaiting its release 😇

@arthurfiorette
Copy link
Contributor

Hey @jasonsaayman, can you review this pr?

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

4 participants