Skip to content

fix: esm issue in exports object - #86

Merged
kanadgupta merged 1 commit into
mainfrom
fix/typing-issue-in-exports
Sep 21, 2023
Merged

fix: esm issue in exports object#86
kanadgupta merged 1 commit into
mainfrom
fix/typing-issue-in-exports

Conversation

@kanadgupta

@kanadgupta kanadgupta commented Sep 20, 2023

Copy link
Copy Markdown
Contributor

🧰 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, Dashron, domharrington and erunion and removed request for a team and erunion September 20, 2023 15:48

@domharrington domharrington left a comment

Copy link
Copy Markdown
Member

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!

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