DefinitelyTyped/types/react-select/index.d.ts
Claas Ahlrichs 7c33a95827 added definitions for react select (v2) (#27737)
* moved existing "react-select" definitions into "v1" directory

* updated references to V1 of "react-select"

* dts-gen --dt --name react-select --template module

* added placeholders for react-select definitions and tests

* fixed imports of react and react-select

* updated config. files

* drafted definitions for react-select

* updated definitions for react-select

* made Props in stateManager.d.ts and Select.d.ts optional

* handle grouped options in Select.d.ts

* updated definitions for react-select

* resolved merge conflicts

* fixed issues identified by "npm test"

* updated type of "menuPortalTarget"

* remove OptionType type and introduce throughout as a generic parameter

* add an extra type

* re-enable interface-over-type-literal lint rule

* parameterize GroupedOptionsType
after some consideration this should be parameterized, typically with a union type, see Grouped example which is a select of `ColourOption | FlavourOption`
2018-08-02 16:41:18 -07:00

22 lines
877 B
TypeScript

// Type definitions for react-select 2.0
// Project: https://github.com/JedWatson/react-select#readme
// Definitions by: Claas Ahlrichs <https://github.com/claasahl>
// Jon Freedman <https://github.com/jonfreedman>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.9
import SelectBase from './lib/Select';
import { StateManager } from './lib/stateManager';
export default SelectBase;
// export default StateManager;
export { SelectBase };
export { default as Async } from './lib/Async';
export { default as AsyncCreatable } from './lib/AsyncCreatable';
export { default as Creatable } from './lib/Creatable';
export { createFilter } from './lib/filters';
export { default as makeAnimated } from './lib/animated/index';
export { components } from './lib/components/index';
export { mergeStyles } from './lib/styles';