mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-04 19:42:46 +08:00
Merge pull request #19721 from lruckman/patch-2
[react-select] FilterOption should return boolean value
This commit is contained in:
2
types/react-select/index.d.ts
vendored
2
types/react-select/index.d.ts
vendored
@@ -27,7 +27,7 @@ declare namespace ReactSelectClass {
|
||||
type FocusOptionHandler<TValue = OptionValues> = (option: Option<TValue>) => void;
|
||||
type SelectValueHandler<TValue = OptionValues> = (option: Option<TValue>) => void;
|
||||
type ArrowRendererHandler = (props: ArrowRendererProps) => HandlerRendererResult;
|
||||
type FilterOptionHandler<TValue = OptionValues> = (option: Option<TValue>, filter: string) => Option<TValue>;
|
||||
type FilterOptionHandler<TValue = OptionValues> = (option: Option<TValue>, filter: string) => boolean;
|
||||
type FilterOptionsHandler<TValue = OptionValues> = (options: Options<TValue>, filter: string, currentValues: Options<TValue>) => Options<TValue>;
|
||||
type InputRendererHandler = (props: { [key: string]: any }) => HandlerRendererResult;
|
||||
type MenuRendererHandler<TValue = OptionValues> = (props: MenuRendererProps<TValue>) => HandlerRendererResult;
|
||||
|
||||
Reference in New Issue
Block a user