Commit Graph

5 Commits

Author SHA1 Message Date
Claas Ahlrichs
af2acebec6 updated types for react-select/lib/components 2018-08-27 08:25:06 +02:00
Jon Freedman
135d115688 [react-select] switch DOM Node for ReactNode as per other files (#27871)
* as elsewhere Node type should refer to ReactNode not a DOM node

* lint fix :(

* remove ReactNode -> Node alias and use ReactNode type throughout
2018-08-06 12:01:51 -07:00
Claas Ahlrichs
7d077bf418 Feature/react select v2 update (#27837)
* updated parameter names in function signatures

* addressed return type of "CSS functions"

* simplified StylesConfig and SelectComponentsConfig

* updated type of base parameter in styleFn

* removed invalid property from HTML select element
2018-08-03 11:49:22 -07:00
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
Leonard Thieu
c86365e2fc react-select typings update:
- defaultMenuRenderer
 - Option component
 - other minor updates
2018-03-13 13:14:52 +03:00