Skip to content

Allow type imports#5769

Closed
xec wants to merge 2 commits intoJedWatson:masterfrom
xec:master
Closed

Allow type imports#5769
xec wants to merge 2 commits intoJedWatson:masterfrom
xec:master

Conversation

@xec
Copy link

@xec xec commented Oct 9, 2023

I'm working on a typescript react component library that wraps and restyles react-select including types, and in an effort to make that work we currently have the following type import;

import type SelectClass from 'react-select/dist/declarations/src/Select'

exports field in package.json was introduced in #5559 which breaks this since nothing can be imported from react-select/dist/declarations/... any longer :/

Adding an export rule for declaration types in the package fixes this issue.

@changeset-bot
Copy link

changeset-bot bot commented Oct 9, 2023

🦋 Changeset detected

Latest commit: 6b55791

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
react-select Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@xec
Copy link
Author

xec commented Oct 9, 2023

duplicate of #5762

@xec xec closed this Oct 9, 2023
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.

1 participant