react-select icon indicating copy to clipboard operation
react-select copied to clipboard

Export filter interfaces from index.js: FilterOptionOption & [FilterOptions]Config

Open patcon opened this issue 3 years ago • 3 comments

I was trying to work with custom filter logic with typescript and createFilter, which is currently only available in old pre-typescript docs: https://react-select.com/advanced#custom-filter-logic

Anyhow, while trying to figure out the typescript way, and realized I had to copy these interfaces into my own codebase.

This is the example that could perhaps be updated with this (?) https://github.com/JedWatson/react-select/blob/master/docs/examples/CreateFilter.tsx

I'm still getting my sea-legs with typescript, so happy to hear if there's another way and this isn't necessary.

patcon avatar Jun 21 '22 03:06 patcon

⚠️ No Changeset found

Latest commit: df91575a532009f0cca510b8d3b4c8717f9abdd8

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

changeset-bot[bot] avatar Jun 21 '22 03:06 changeset-bot[bot]

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit df91575a532009f0cca510b8d3b4c8717f9abdd8:

Sandbox Source
react-codesandboxer-example Configuration

codesandbox-ci[bot] avatar Jun 21 '22 03:06 codesandbox-ci[bot]

Is there any update?

imanmalekian31 avatar Dec 11 '24 08:12 imanmalekian31