mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-29 01:45:49 +08:00
Fix definition for custom components in react-select (#9516)
This commit is contained in:
6
react-select/react-select.d.ts
vendored
6
react-select/react-select.d.ts
vendored
@@ -252,7 +252,7 @@ declare namespace ReactSelect {
|
||||
/**
|
||||
* option component to render in dropdown
|
||||
*/
|
||||
optionComponent?: __React.ReactElement<any>;
|
||||
optionComponent?: __React.ComponentClass<any>;
|
||||
/**
|
||||
* function which returns a custom way to render the options in the menu
|
||||
*/
|
||||
@@ -317,7 +317,7 @@ declare namespace ReactSelect {
|
||||
/**
|
||||
* value component to render
|
||||
*/
|
||||
valueComponent?: __React.ReactElement<any>;
|
||||
valueComponent?: __React.ComponentClass<any>;
|
||||
|
||||
/**
|
||||
* optional style to apply to the component wrapper
|
||||
@@ -407,7 +407,7 @@ declare module "react-select" {
|
||||
}
|
||||
|
||||
declare module "react-select-props" {
|
||||
|
||||
|
||||
interface Option extends ReactSelect.Option {}
|
||||
interface MenuRendererProps extends ReactSelect.MenuRendererProps {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user