[react-select] Export component props. (#36799)

* [react-select] Export AsyncCreatable component props.

* Update types/react-select/src/AsyncCreatable.d.ts

Co-Authored-By: Nathan Bierema <nbierema@gmail.com>
This commit is contained in:
Thomas Chia 2019-08-24 01:12:29 +08:00 committed by Sheetal Nandi
parent e371bd134f
commit f55591b9e2
2 changed files with 3 additions and 2 deletions

View File

@ -3,6 +3,7 @@
// Definitions by: Claas Ahlrichs <https://github.com/claasahl>
// Jon Freedman <https://github.com/jonfreedman>
// Nathan Bierema <https://github.com/Methuselah96>
// Thomas Chia <https://github.com/thchia>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.9

View File

@ -4,9 +4,9 @@ import { Props as CreatableProps, State as CreatableState } from './Creatable';
import { OptionsType, ValueType, ActionMeta, InputActionMeta } from './types';
import { cleanValue } from './utils';
type Props<OptionType> = AsyncProps<OptionType> & CreatableProps<OptionType>;
export type Props<OptionType> = AsyncProps<OptionType> & CreatableProps<OptionType>;
type State<OptionType> = AsyncState<OptionType> & CreatableState<OptionType>;
export type State<OptionType> = AsyncState<OptionType> & CreatableState<OptionType>;
export class AsyncCreatable<OptionType> extends Component<Props<OptionType>, State<OptionType>> {
static defaultProps: Props<any>;