Remove unused ReactCall & ReactReturn types (#13419)

These are no longer used after the removal of the `react-call-return` package.
This commit is contained in:
Esteban
2018-08-16 18:48:13 +01:00
committed by Dan Abramov
parent 4fa20b53b7
commit d5edc1f51e
-25
View File
@@ -9,8 +9,6 @@
export type ReactNode =
| React$Element<any>
| ReactCall<any>
| ReactReturn<any>
| ReactPortal
| ReactText
| ReactFragment
@@ -25,29 +23,6 @@ export type ReactText = string | number;
export type ReactEmpty = null | void | boolean;
export type ReactCall<V> = {
$$typeof: Symbol | number,
type: Symbol | number,
key: null | string,
ref: null,
props: {
props: any,
// This should be a more specific CallHandler
handler: (props: any, returns: Array<V>) => ReactNodeList,
children?: ReactNodeList,
},
};
export type ReactReturn<V> = {
$$typeof: Symbol | number,
type: Symbol | number,
key: null,
ref: null,
props: {
value: V,
},
};
export type ReactProvider<T> = {
$$typeof: Symbol | number,
type: ReactProviderType<T>,