From 8b68c2fbb52e0729162739a3d76c4ba156150e22 Mon Sep 17 00:00:00 2001 From: Radu Date: Thu, 15 Nov 2018 23:31:28 +0200 Subject: [PATCH] @types/react-select: Async make non-mandatory props optional (#30485) --- types/react-select/lib/Async.d.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/types/react-select/lib/Async.d.ts b/types/react-select/lib/Async.d.ts index 8acc5532b7..b9c753fa92 100644 --- a/types/react-select/lib/Async.d.ts +++ b/types/react-select/lib/Async.d.ts @@ -6,14 +6,16 @@ import { OptionsType, InputActionMeta } from './types'; export interface AsyncProps { /* The default set of options to show before the user starts searching. When - set to `true`, the results for loadOptions('') will be autoloaded. */ - defaultOptions: OptionsType | boolean; + set to `true`, the results for loadOptions('') will be autoloaded. + Default: false. */ + defaultOptions?: OptionsType | boolean; /* Function that returns a promise, which is the set of options to be used once the promise resolves. */ loadOptions: (inputValue: string, callback: ((options: OptionsType) => void)) => Promise | void; /* If cacheOptions is truthy, then the loaded data will be cached. The cache - will remain until `cacheOptions` changes value. */ - cacheOptions: any; + will remain until `cacheOptions` changes value. + Default: false. */ + cacheOptions?: any; } export type Props = SelectProps & AsyncProps;