diff --git a/lib/flow-typed/npm/react-redux_v7.x.x.js b/lib/flow-typed/npm/react-redux_v7.x.x.js --- a/lib/flow-typed/npm/react-redux_v7.x.x.js +++ b/lib/flow-typed/npm/react-redux_v7.x.x.js @@ -57,7 +57,7 @@ // and provide the StateProps type to the SP type parameter. | ((state: S, ownProps: OP) => (state: S, ownProps: OP) => SP); - declare type Bind = ((...A) => R) => (...A) => $Call; + declare type Bind = ((...A) => R) => (...A) => ReturnType; declare type MapDispatchToPropsFn = | ((dispatch: D, ownProps: OP) => DP) diff --git a/lib/socket/socket.react.js b/lib/socket/socket.react.js --- a/lib/socket/socket.react.js +++ b/lib/socket/socket.react.js @@ -285,7 +285,7 @@ } } - reconnect: $Call void, number> = _throttle( + reconnect: ReturnType = _throttle( () => this.openSocket('reconnecting'), clientKeyserverSocketReconnectDelay, ); diff --git a/native/flow-typed/npm/@react-navigation/core_v6.x.x.js b/native/flow-typed/npm/@react-navigation/core_v6.x.x.js --- a/native/flow-typed/npm/@react-navigation/core_v6.x.x.js +++ b/native/flow-typed/npm/@react-navigation/core_v6.x.x.js @@ -433,25 +433,16 @@ * MAGIC */ - declare type $If = $Call< - ((true, Then, Else) => Then) & ((false, Then, Else) => Else), - Test, - Then, - Else, - >; - declare type $IsA = $Call< - (Y => true) & (mixed => false), - X, - >; + declare type $If = + Test extends true ? Then : Else; + + declare type $IsA = X extends Y ? true : false; declare type $IsUndefined = $IsA; declare type $Partial = $ReadOnly<$Rest>; // If { ...T, ... } counts as a T, then we're inexact - declare type $IsExact = $Call< - (T => false) & (mixed => true), - { ...T, ... }, - >; + declare type $IsExact = { ...T, ... } extends T ? false : true; /** * Actions, state, etc. diff --git a/native/flow-typed/npm/react-redux_v7.x.x.js b/native/flow-typed/npm/react-redux_v7.x.x.js --- a/native/flow-typed/npm/react-redux_v7.x.x.js +++ b/native/flow-typed/npm/react-redux_v7.x.x.js @@ -57,7 +57,7 @@ // and provide the StateProps type to the SP type parameter. | ((state: S, ownProps: OP) => (state: S, ownProps: OP) => SP); - declare type Bind = ((...A) => R) => (...A) => $Call; + declare type Bind = ((...A) => R) => (...A) => ReturnType; declare type MapDispatchToPropsFn = | ((dispatch: D, ownProps: OP) => DP) diff --git a/web/flow-typed/npm/react-redux_v7.x.x.js b/web/flow-typed/npm/react-redux_v7.x.x.js --- a/web/flow-typed/npm/react-redux_v7.x.x.js +++ b/web/flow-typed/npm/react-redux_v7.x.x.js @@ -57,7 +57,7 @@ // and provide the StateProps type to the SP type parameter. | ((state: S, ownProps: OP) => (state: S, ownProps: OP) => SP); - declare type Bind = ((...A) => R) => (...A) => $Call; + declare type Bind = ((...A) => R) => (...A) => ReturnType; declare type MapDispatchToPropsFn = | ((dispatch: D, ownProps: OP) => DP)