diff --git a/types/react-virtualized-select/index.d.ts b/types/react-virtualized-select/index.d.ts index d3cec048cb..ab496a0213 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 { ReactSelectProps } from "react-select"; +import { ReactAsyncSelectProps, OptionValues } from "react-select"; import { ListProps } from "react-virtualized"; export interface VirtualizedOptionRenderOptions { @@ -26,10 +26,10 @@ export interface VirtualizedOptionRenderOptions { * Dummy interface to allow `VirtualizedSelectProps` to have an `optionRenderer` type * incompatible with the one in `ReactSelectProps`. */ -interface VirtualizedSelectPropsBase extends ReactSelectProps { +interface VirtualizedSelectPropsBase extends ReactAsyncSelectProps { optionRenderer?: any; } -export interface VirtualizedSelectProps extends VirtualizedSelectPropsBase { +export interface VirtualizedSelectProps extends VirtualizedSelectPropsBase { async?: boolean; maxHeight?: number; optionHeight?: number; @@ -37,5 +37,5 @@ export interface VirtualizedSelectProps extends VirtualizedSelectPropsBase { selectComponent?: React.ComponentClass | React.StatelessComponent; } -declare class VirtualizedSelect extends React.PureComponent {} +declare class VirtualizedSelect extends React.PureComponent> {} export default VirtualizedSelect;