diff --git a/types/react-virtualized-select/index.d.ts b/types/react-virtualized-select/index.d.ts index ab496a0213..234d0a5b97 100644 --- a/types/react-virtualized-select/index.d.ts +++ b/types/react-virtualized-select/index.d.ts @@ -5,7 +5,7 @@ // TypeScript Version: 2.3 import * as React from "react"; -import { ReactAsyncSelectProps, OptionValues } from "react-select"; +import { ReactSelectProps, LoadOptionsHandler, OptionValues } from "react-select"; import { ListProps } from "react-virtualized"; export interface VirtualizedOptionRenderOptions { @@ -26,11 +26,12 @@ export interface VirtualizedOptionRenderOptions { * Dummy interface to allow `VirtualizedSelectProps` to have an `optionRenderer` type * incompatible with the one in `ReactSelectProps`. */ -interface VirtualizedSelectPropsBase extends ReactAsyncSelectProps { +interface VirtualizedSelectPropsBase extends ReactSelectProps { optionRenderer?: any; } export interface VirtualizedSelectProps extends VirtualizedSelectPropsBase { async?: boolean; + loadOptions?: LoadOptionsHandler; maxHeight?: number; optionHeight?: number; optionRenderer?(options: VirtualizedOptionRenderOptions): JSX.Element;