JedWatson / react-select

The Select Component for React.js
https://react-select.com/
MIT License
27.49k stars 4.12k forks source link

Add type export for ./dist/declarations/src/Select #5744

Closed FabianFrank closed 10 months ago

FabianFrank commented 11 months ago

to fix module augmentation with moduleResolution node16. Fixes https://github.com/JedWatson/react-select/issues/5743.

changeset-bot[bot] commented 11 months ago

⚠️ No Changeset found

Latest commit: 511fd1734fcf2c1dfb1212310d6de185281b4da4

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

FabianFrank commented 11 months ago

I've only started yesterday to really dig into moduleResolution node16, I would appreciate it if @emmatown could weigh in since it seems she fixed up the export map in the past.

igl commented 11 months ago

You can use a wildcard to export all the declarations

        "./dist/declarations/*": {
            "types": "./dist/declarations/*"
        },