DefinitelyTyped/types/theming
Jessica Franco 9039892f8e Add more of the new features added in React 16.6 (#30054)
* Add definitions for React.memo

* Add missing semicolons

* Give a better name to the second argument to React.memo

* Fix test to reflect correct usage of React.memo's second argument

* Fix no-unnecessary-qualifier lints

* Update other special components to be SpecialSFC

* Ensure ordinary functions aren't assignable to SpecialSFC

* createElement was resolving P to "{} | null" in some tests; add extends to prevent that

* Fix the props of Fragment and StrictMode

* Add tests for SpecialSFC assignability

* Add scary doc comment to SpecialSFC's call signature

Hopefully this trips tslint's deprecation rule.

* Rename SpecialSFC to ExoticComponent

* Add overload to React.memo to make it more ergonomic and avoid implicit any

* Disable test that requires TS 3.1

* Add support for displayName in the exotic components that support it

* Tone down the call signature's doc comment

* Correct $ExpectType assertion

* Try to implement LibraryManagedAttributes for the ExoticComponents that should support them

This doesn't actually work because it seems only class components get them checked?

* Add type definitions for new React 16.6 features

This also attempts to add support for LibraryManagedAttributes to the ExoticComponents.

* The fallback prop is required by Suspense

* Declare legacy context on tests that use legacy context
2018-11-09 06:35:23 +00:00
..
index.d.ts
theming-tests.tsx
tsconfig.json
tslint.json