Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32171778
D15009.1765061047.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
D15009.1765061047.diff
View Options
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<D> = <A, R>((...A) => R) => (...A) => $Call<D, R>;
+ declare type Bind<D> = <A, R>((...A) => R) => (...A) => ReturnType<D>;
declare type MapDispatchToPropsFn<D, OP, DP> =
| ((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<typeof _throttle, () => void, number> = _throttle(
+ reconnect: ReturnType<typeof _throttle> = _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<Test: boolean, Then, Else = empty> = $Call<
- ((true, Then, Else) => Then) & ((false, Then, Else) => Else),
- Test,
- Then,
- Else,
- >;
- declare type $IsA<X, Y> = $Call<
- (Y => true) & (mixed => false),
- X,
- >;
+ declare type $If<Test: boolean, Then, Else = empty> =
+ Test extends true ? Then : Else;
+
+ declare type $IsA<X, Y> = X extends Y ? true : false;
declare type $IsUndefined<X> = $IsA<X, void>;
declare type $Partial<T> = $ReadOnly<$Rest<T, {...}>>;
// If { ...T, ... } counts as a T, then we're inexact
- declare type $IsExact<T> = $Call<
- (T => false) & (mixed => true),
- { ...T, ... },
- >;
+ declare type $IsExact<T> = { ...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<D> = <A, R>((...A) => R) => (...A) => $Call<D, R>;
+ declare type Bind<D> = <A, R>((...A) => R) => (...A) => ReturnType<D>;
declare type MapDispatchToPropsFn<D, OP, DP> =
| ((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<D> = <A, R>((...A) => R) => (...A) => $Call<D, R>;
+ declare type Bind<D> = <A, R>((...A) => R) => (...A) => ReturnType<D>;
declare type MapDispatchToPropsFn<D, OP, DP> =
| ((dispatch: D, ownProps: OP) => DP)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 6, 10:44 PM (16 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5840956
Default Alt Text
D15009.1765061047.diff (3 KB)
Attached To
Mode
D15009: [Flow262][skip-ci] Migrate from $Call
Attached
Detach File
Event Timeline
Log In to Comment