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

Typescript Error when using searchFn #43

Closed
sagedemdreisbusch opened this issue Oct 18, 2019 · 2 comments
Closed

Typescript Error when using searchFn #43

sagedemdreisbusch opened this issue Oct 18, 2019 · 2 comments

Comments

@sagedemdreisbusch
Copy link

Hi Sasha,

we are using react-dropdown-select component in our project. It really works great but we have one issue with typescript.

When giving a own searchFn to the component, typescript brings up an error because the function is typed as () => void. May it be possible to chenge the type to something like 'searchFn?: ({ props, state, methods }: IRenderer) => object[];' ?

A lot of thanks and best wishes
Max

@sanusart
Copy link
Owner

Published version: v3.6.4, thank you!

@sagedemdreisbusch
Copy link
Author

Great, a lot of thanks for fixing and acting so quickly :)

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

No branches or pull requests

2 participants