mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
Fix handleFilterSuggestions return type (#29912)
This commit is contained in:
2
types/react-tag-input/index.d.ts
vendored
2
types/react-tag-input/index.d.ts
vendored
@@ -19,7 +19,7 @@ export interface ReactTagsProps {
|
||||
handleDelete: ((i: number) => void);
|
||||
handleDrag?: ((tag: { id: string; text: string; }, currPos: number, newPos: number) => void);
|
||||
handleInputChange?: ((value: string) => void);
|
||||
handleFilterSuggestions?: ((textInputValue: string, possibleSuggestionsArray: Array<{ id: string, text: string }>) => boolean);
|
||||
handleFilterSuggestions?: ((textInputValue: string, possibleSuggestionsArray: Array<{ id: string, text: string }>) => Array<{ id: string, text: string }>);
|
||||
handleInputBlur?: ((textInputValue: string) => void);
|
||||
|
||||
autofocus?: boolean;
|
||||
|
||||
@@ -18,7 +18,7 @@ ReactDOM.render(
|
||||
handleDelete={(i: number) => console.log("Delete: " + i)}
|
||||
handleDrag={(tag: { id: string; text: string; }, currPos: number, newPos: number) => console.log("Drag: " + tag.text)}
|
||||
handleInputChange={(value: string) => console.log("Changed to: ", value)}
|
||||
handleFilterSuggestions={(textInputValue: string, possibleSuggestionsArray: Array<{ id: string, text: string }>) => true}
|
||||
handleFilterSuggestions={(textInputValue: string, possibleSuggestionsArray: Array<{ id: string, text: string }>) => suggestions}
|
||||
handleInputBlur={() => console.log("Blured")}
|
||||
|
||||
autofocus={false}
|
||||
|
||||
Reference in New Issue
Block a user