From 735b9a1cc6a9970331f263afa0d2c024685edfbd Mon Sep 17 00:00:00 2001 From: arteforme <6117939+arteforme@users.noreply.github.com> Date: Fri, 27 Jul 2018 15:57:55 -0700 Subject: [PATCH] react-bootstrap-typeahead: Added isInvalid, isValid introduced in 3.2 (#27640) --- types/react-bootstrap-typeahead/index.d.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/types/react-bootstrap-typeahead/index.d.ts b/types/react-bootstrap-typeahead/index.d.ts index 005a7633ed..ad64d0941a 100644 --- a/types/react-bootstrap-typeahead/index.d.ts +++ b/types/react-bootstrap-typeahead/index.d.ts @@ -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 // Rajab Shakirov @@ -70,9 +70,15 @@ export interface TypeaheadProps { /* 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);