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

createAsyncOptions type issue on 15.0 #67

Open
renataogarcia opened this issue Jul 12, 2024 · 0 comments
Open

createAsyncOptions type issue on 15.0 #67

renataogarcia opened this issue Jul 12, 2024 · 0 comments

Comments

@renataogarcia
Copy link

After upgrading to 15.0 I'm seeing this issue:

Types of property options are incompatible. Type unknown is not assignable to type any[] | ((inputValue: string) => any[])
when using <Select/> with createAsyncOptions.

The Select expects any but createAsyncOptions is returning unknown. I'm assuming it should be any instead of unknown.

The type is being inferred here and I believe that changing the return type here from unknown to any would fix it?

Thanks for the great work on 15.0 - looking awesome!

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

1 participant