Skip to content

createAsyncOptions type issue on 15.0 #67

@renataogarcia

Description

@renataogarcia

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions