diff --git a/packages/react-relay/buildReactRelayContainer.js b/packages/react-relay/buildReactRelayContainer.js index b8af448591353..6470f90b2cb16 100644 --- a/packages/react-relay/buildReactRelayContainer.js +++ b/packages/react-relay/buildReactRelayContainer.js @@ -54,7 +54,9 @@ function buildReactRelayContainer>( function forwardRef( props: any, - ref: ((null | any) => mixed) | {current: null | any, ...}, + ref: + | ((null | React$ElementRef) => mixed) + | {-current: null | React$ElementRef, ...}, ) { const context = useContext(ReactRelayContext); invariant( @@ -78,8 +80,6 @@ function buildReactRelayContainer>( ); } forwardRef.displayName = containerName; - /* $FlowFixMe[incompatible-call] (site=www) Error found while fixing forwardRef and - * TRefFor types */ const ForwardContainer = React.forwardRef(forwardRef); if (__DEV__) {