thisbeyond / solid-select

The Select component for Solid.
https://solid-select.com
MIT License
172 stars 18 forks source link

createAsyncOptions type issue on 15.0 #67

Open renataogarcia opened 1 month ago

renataogarcia commented 1 month ago

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!