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: esm issue in exports object #86

Merged
merged 1 commit into from
Sep 21, 2023
Merged

Conversation

kanadgupta
Copy link
Member

@kanadgupta kanadgupta commented Sep 20, 2023

🧰 Changes

Fixes an issue where we're incorrectly pointing to the CJS types for both the ESM and CJS exports. Instead we should be able to remove the types definition entirely and rely on the inferred types.

This was instigated by the following TS error when performing an ESM migration on another package that depends on this:

CleanShot 2023-09-20 at 13 49 45@2x

🧬 QA & Testing

The current version of this package yields this on Are The Types Wrong:

image

When testing against the changes, it yields this:

CleanShot 2023-09-20 at 10 47 49@2x

@kanadgupta kanadgupta added the bug Something isn't working label Sep 20, 2023
@kanadgupta kanadgupta requested review from a team, erunion, Dashron and domharrington and removed request for a team and erunion September 20, 2023 15:48
Copy link
Member

@domharrington domharrington left a comment

Choose a reason for hiding this comment

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

Dont fully understand but LGTM!

@kanadgupta kanadgupta merged commit 1e3b11a into main Sep 21, 2023
5 checks passed
@kanadgupta kanadgupta deleted the fix/typing-issue-in-exports branch September 21, 2023 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants