Remove unused ReactCall & ReactReturn types (#13419)
These are no longer used after the removal of the `react-call-return` package.
Esteban committed
Aug 16, 2018 at 19:48 UTC
d5edc1f51eeb7ab0d43c57e8abafdbd075d64fe0
1 file changed
-25
packages/shared/ReactTypes.js
-25
@@ -9,8 +9,6 @@
9
10
export type ReactNode =
11
| React$Element<any>
12
- | ReactCall<any>
13
- | ReactReturn<any>
12
| ReactPortal
13
| ReactText
14
| ReactFragment
@@ -25,29 +23,6 @@ export type ReactText = string | number;
23
24
export type ReactEmpty = null | void | boolean;
25
28
-export type ReactCall<V> = {
29
- $$typeof: Symbol | number,
30
- type: Symbol | number,
31
- key: null | string,
32
- ref: null,
33
- props: {
34
- props: any,
35
- // This should be a more specific CallHandler
36
- handler: (props: any, returns: Array<V>) => ReactNodeList,
37
- children?: ReactNodeList,
38
- },
39
-};
40
-
41
-export type ReactReturn<V> = {
42
- $$typeof: Symbol | number,
43
- type: Symbol | number,
44
- key: null,
45
- ref: null,
46
- props: {
47
- value: V,
48
- },
49
-};
50
-
26
export type ReactProvider<T> = {
27
$$typeof: Symbol | number,
28
type: ReactProviderType<T>,