react-bootstrap-typeahead: Added isInvalid, isValid introduced in 3.2 (#27640)

This commit is contained in:
arteforme 2018-07-27 15:57:55 -07:00 committed by Andy
parent 5568145d86
commit 735b9a1cc6

View File

@ -1,4 +1,4 @@
// Type definitions for react-bootstrap-typeahead 3.1
// Type definitions for react-bootstrap-typeahead 3.2
// Project: https://github.com/ericgio/react-bootstrap-typeahead
// Definitions by: Guymestef <https://github.com/Guymestef>
// Rajab Shakirov <https://github.com/radziksh>
@ -70,9 +70,15 @@ export interface TypeaheadProps<T> {
/* Props to be applied directly to the input. onBlur, onChange, onFocus, and onKeyDown are ignored. */
inputProps?: object;
/* Bootstrap 4 only. Adds the `is-invalid` classname to the `form-control`. */
isInvalid?: boolean;
/* Indicate whether an asynchronous data fetch is happening. */
isLoading?: boolean;
/* Bootstrap 4 only. Adds the `is-valid` classname to the `form-control`. */
isValid?: boolean;
/* Specify which option key to use for display or a render function. By default, the selector will use the label key. */
labelKey?: string | ((option: T | string) => string);