mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* 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`
22 lines
877 B
TypeScript
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';
|