mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
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:
@@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user