Page MenuHomePhorge

D15002.1765050680.diff
No OneTemporary

Size
24 KB
Referenced Files
None
Subscribers
None

D15002.1765050680.diff

diff --git a/keyserver/flow-typed/npm/react-redux_v7.x.x.js b/keyserver/flow-typed/npm/react-redux_v7.x.x.js
--- a/keyserver/flow-typed/npm/react-redux_v7.x.x.js
+++ b/keyserver/flow-typed/npm/react-redux_v7.x.x.js
@@ -47,7 +47,7 @@
storeKey?: string,
|};
- declare type MapStateToProps<-S, -OP, +SP> =
+ declare type MapStateToProps<S, OP, SP> =
| ((state: S, ownProps: OP) => SP)
// If you want to use the factory function but get a strange error
// like "function is not an object" then just type the factory function
@@ -58,7 +58,7 @@
declare type Bind<D> = <A, R>((...A) => R) => (...A) => $Call<D, R>;
- declare type MapDispatchToPropsFn<D, -OP, +DP> =
+ declare type MapDispatchToPropsFn<D, OP, DP> =
| ((dispatch: D, ownProps: OP) => DP)
// If you want to use the factory function but get a strange error
// like "function is not an object" then just type the factory function
@@ -90,14 +90,14 @@
declare type MergeOPDP<OP, DP> = {| ...$Exact<OP>, ...DP |};
declare type MergeOPSPDP<OP, SP, DP> = {| ...$Exact<OP>, ...SP, ...DP |};
- declare export function connect<-P, -OP, -SP, -DP, -S, -D>(
+ declare export function connect<P, OP, SP, DP, S, D>(
mapStateToProps?: null | void,
mapDispatchToProps?: null | void,
mergeProps?: null | void,
options?: ?Options<S, OP, {||}, MergeOP<OP, D>>,
): Connector<P, OP, MergeOP<OP, D>>;
- declare export function connect<-P, -OP, -SP, -DP, -S, -D>(
+ declare export function connect<P, OP, SP, DP, S, D>(
// If you get error here try adding return type to your mapStateToProps function
mapStateToProps: MapStateToProps<S, OP, SP>,
mapDispatchToProps?: null | void,
@@ -107,7 +107,7 @@
// In this case DP is an object of functions which has been bound to dispatch
// by the given mapDispatchToProps function.
- declare export function connect<-P, -OP, -SP, -DP, S, D>(
+ declare export function connect<P, OP, SP, DP, S, D>(
mapStateToProps: null | void,
mapDispatchToProps: MapDispatchToPropsFn<D, OP, DP>,
mergeProps?: null | void,
@@ -117,14 +117,14 @@
// In this case DP is an object of action creators not yet bound to dispatch,
// this difference is not important in the vanila redux,
// but in case of usage with redux-thunk, the return type may differ.
- declare export function connect<-P, -OP, -SP, -DP, S, D>(
+ declare export function connect<P, OP, SP, DP, S, D>(
mapStateToProps: null | void,
mapDispatchToProps: DP,
mergeProps?: null | void,
options?: ?Options<S, OP, {||}, MergeOPDP<OP, DP>>,
): Connector<P, OP, MergeOPDP<OP, $ObjMap<DP, Bind<D>>>>;
- declare export function connect<-P, -OP, -SP, -DP, S, D>(
+ declare export function connect<P, OP, SP, DP, S, D>(
// If you get error here try adding return type to your mapStateToProps function
mapStateToProps: MapStateToProps<S, OP, SP>,
mapDispatchToProps: MapDispatchToPropsFn<D, OP, DP>,
@@ -132,7 +132,7 @@
options?: ?Options<S, OP, SP, {| ...OP, ...SP, ...DP |}>,
): Connector<P, OP, {| ...OP, ...SP, ...DP |}>;
- declare export function connect<-P, -OP, -SP, -DP, S, D>(
+ declare export function connect<P, OP, SP, DP, S, D>(
// If you get error here try adding return type to your mapStateToProps function
mapStateToProps: MapStateToProps<S, OP, SP>,
mapDispatchToProps: DP,
@@ -142,13 +142,13 @@
// With `mergeProps` argument
- declare type MergeProps<+P, -OP, -SP, -DP> = (
+ declare type MergeProps<P, OP, SP, DP> = (
stateProps: SP,
dispatchProps: DP,
ownProps: OP,
) => P;
- declare export function connect<-P, -OP, -SP: {||}, -DP: {||}, S, D>(
+ declare export function connect<P, OP, SP: {||}, DP: {||}, S, D>(
mapStateToProps: null | void,
mapDispatchToProps: null | void,
// If you get error here try adding return type to you mapStateToProps function
@@ -156,7 +156,7 @@
options?: ?Options<S, OP, {||}, P>,
): Connector<P, OP, P>;
- declare export function connect<-P, -OP, -SP, -DP: {||}, S, D>(
+ declare export function connect<P, OP, SP, DP: {||}, S, D>(
mapStateToProps: MapStateToProps<S, OP, SP>,
mapDispatchToProps: null | void,
// If you get error here try adding return type to you mapStateToProps function
@@ -166,7 +166,7 @@
// In this case DP is an object of functions which has been bound to dispatch
// by the given mapDispatchToProps function.
- declare export function connect<-P, -OP, -SP: {||}, -DP, S, D>(
+ declare export function connect<P, OP, SP: {||}, DP, S, D>(
mapStateToProps: null | void,
mapDispatchToProps: MapDispatchToPropsFn<D, OP, DP>,
mergeProps: MergeProps<P, OP, {||}, DP>,
@@ -176,7 +176,7 @@
// In this case DP is an object of action creators not yet bound to dispatch,
// this difference is not important in the vanila redux,
// but in case of usage with redux-thunk, the return type may differ.
- declare export function connect<-P, -OP, -SP: {||}, -DP, S, D>(
+ declare export function connect<P, OP, SP: {||}, DP, S, D>(
mapStateToProps: null | void,
mapDispatchToProps: DP,
mergeProps: MergeProps<P, OP, {||}, $ObjMap<DP, Bind<D>>>,
@@ -185,7 +185,7 @@
// In this case DP is an object of functions which has been bound to dispatch
// by the given mapDispatchToProps function.
- declare export function connect<-P, -OP, -SP, -DP, S, D>(
+ declare export function connect<P, OP, SP, DP, S, D>(
mapStateToProps: MapStateToProps<S, OP, SP>,
mapDispatchToProps: MapDispatchToPropsFn<D, OP, DP>,
mergeProps: MergeProps<P, OP, SP, DP>,
@@ -195,7 +195,7 @@
// In this case DP is an object of action creators not yet bound to dispatch,
// this difference is not important in the vanila redux,
// but in case of usage with redux-thunk, the return type may differ.
- declare export function connect<-P, -OP, -SP, -DP, S, D>(
+ declare export function connect<P, OP, SP, DP, S, D>(
mapStateToProps: MapStateToProps<S, OP, SP>,
mapDispatchToProps: DP,
mergeProps: MergeProps<P, OP, SP, $ObjMap<DP, Bind<D>>>,
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
@@ -47,7 +47,7 @@
storeKey?: string,
|};
- declare type MapStateToProps<-S, -OP, +SP> =
+ declare type MapStateToProps<S, OP, SP> =
| ((state: S, ownProps: OP) => SP)
// If you want to use the factory function but get a strange error
// like "function is not an object" then just type the factory function
@@ -58,7 +58,7 @@
declare type Bind<D> = <A, R>((...A) => R) => (...A) => $Call<D, R>;
- declare type MapDispatchToPropsFn<D, -OP, +DP> =
+ declare type MapDispatchToPropsFn<D, OP, DP> =
| ((dispatch: D, ownProps: OP) => DP)
// If you want to use the factory function but get a strange error
// like "function is not an object" then just type the factory function
@@ -90,14 +90,14 @@
declare type MergeOPDP<OP, DP> = {| ...$Exact<OP>, ...DP |};
declare type MergeOPSPDP<OP, SP, DP> = {| ...$Exact<OP>, ...SP, ...DP |};
- declare export function connect<-P, -OP, -SP, -DP, -S, -D>(
+ declare export function connect<P, OP, SP, DP, S, D>(
mapStateToProps?: null | void,
mapDispatchToProps?: null | void,
mergeProps?: null | void,
options?: ?Options<S, OP, {||}, MergeOP<OP, D>>,
): Connector<P, OP, MergeOP<OP, D>>;
- declare export function connect<-P, -OP, -SP, -DP, -S, -D>(
+ declare export function connect<P, OP, SP, DP, S, D>(
// If you get error here try adding return type to your mapStateToProps function
mapStateToProps: MapStateToProps<S, OP, SP>,
mapDispatchToProps?: null | void,
@@ -107,7 +107,7 @@
// In this case DP is an object of functions which has been bound to dispatch
// by the given mapDispatchToProps function.
- declare export function connect<-P, -OP, -SP, -DP, S, D>(
+ declare export function connect<P, OP, SP, DP, S, D>(
mapStateToProps: null | void,
mapDispatchToProps: MapDispatchToPropsFn<D, OP, DP>,
mergeProps?: null | void,
@@ -117,14 +117,14 @@
// In this case DP is an object of action creators not yet bound to dispatch,
// this difference is not important in the vanila redux,
// but in case of usage with redux-thunk, the return type may differ.
- declare export function connect<-P, -OP, -SP, -DP, S, D>(
+ declare export function connect<P, OP, SP, DP, S, D>(
mapStateToProps: null | void,
mapDispatchToProps: DP,
mergeProps?: null | void,
options?: ?Options<S, OP, {||}, MergeOPDP<OP, DP>>,
): Connector<P, OP, MergeOPDP<OP, $ObjMap<DP, Bind<D>>>>;
- declare export function connect<-P, -OP, -SP, -DP, S, D>(
+ declare export function connect<P, OP, SP, DP, S, D>(
// If you get error here try adding return type to your mapStateToProps function
mapStateToProps: MapStateToProps<S, OP, SP>,
mapDispatchToProps: MapDispatchToPropsFn<D, OP, DP>,
@@ -132,7 +132,7 @@
options?: ?Options<S, OP, SP, {| ...OP, ...SP, ...DP |}>,
): Connector<P, OP, {| ...OP, ...SP, ...DP |}>;
- declare export function connect<-P, -OP, -SP, -DP, S, D>(
+ declare export function connect<P, OP, SP, DP, S, D>(
// If you get error here try adding return type to your mapStateToProps function
mapStateToProps: MapStateToProps<S, OP, SP>,
mapDispatchToProps: DP,
@@ -142,13 +142,13 @@
// With `mergeProps` argument
- declare type MergeProps<+P, -OP, -SP, -DP> = (
+ declare type MergeProps<P, OP, SP, DP> = (
stateProps: SP,
dispatchProps: DP,
ownProps: OP,
) => P;
- declare export function connect<-P, -OP, -SP: {||}, -DP: {||}, S, D>(
+ declare export function connect<P, OP, SP: {||}, DP: {||}, S, D>(
mapStateToProps: null | void,
mapDispatchToProps: null | void,
// If you get error here try adding return type to you mapStateToProps function
@@ -156,7 +156,7 @@
options?: ?Options<S, OP, {||}, P>,
): Connector<P, OP, P>;
- declare export function connect<-P, -OP, -SP, -DP: {||}, S, D>(
+ declare export function connect<P, OP, SP, DP: {||}, S, D>(
mapStateToProps: MapStateToProps<S, OP, SP>,
mapDispatchToProps: null | void,
// If you get error here try adding return type to you mapStateToProps function
@@ -166,7 +166,7 @@
// In this case DP is an object of functions which has been bound to dispatch
// by the given mapDispatchToProps function.
- declare export function connect<-P, -OP, -SP: {||}, -DP, S, D>(
+ declare export function connect<P, OP, SP: {||}, DP, S, D>(
mapStateToProps: null | void,
mapDispatchToProps: MapDispatchToPropsFn<D, OP, DP>,
mergeProps: MergeProps<P, OP, {||}, DP>,
@@ -176,7 +176,7 @@
// In this case DP is an object of action creators not yet bound to dispatch,
// this difference is not important in the vanila redux,
// but in case of usage with redux-thunk, the return type may differ.
- declare export function connect<-P, -OP, -SP: {||}, -DP, S, D>(
+ declare export function connect<P, OP, SP: {||}, DP, S, D>(
mapStateToProps: null | void,
mapDispatchToProps: DP,
mergeProps: MergeProps<P, OP, {||}, $ObjMap<DP, Bind<D>>>,
@@ -185,7 +185,7 @@
// In this case DP is an object of functions which has been bound to dispatch
// by the given mapDispatchToProps function.
- declare export function connect<-P, -OP, -SP, -DP, S, D>(
+ declare export function connect<P, OP, SP, DP, S, D>(
mapStateToProps: MapStateToProps<S, OP, SP>,
mapDispatchToProps: MapDispatchToPropsFn<D, OP, DP>,
mergeProps: MergeProps<P, OP, SP, DP>,
@@ -195,7 +195,7 @@
// In this case DP is an object of action creators not yet bound to dispatch,
// this difference is not important in the vanila redux,
// but in case of usage with redux-thunk, the return type may differ.
- declare export function connect<-P, -OP, -SP, -DP, S, D>(
+ declare export function connect<P, OP, SP, DP, S, D>(
mapStateToProps: MapStateToProps<S, OP, SP>,
mapDispatchToProps: DP,
mergeProps: MergeProps<P, OP, SP, $ObjMap<DP, Bind<D>>>,
diff --git a/lib/flow-typed/npm/tcomb_v3.x.x.js b/lib/flow-typed/npm/tcomb_v3.x.x.js
--- a/lib/flow-typed/npm/tcomb_v3.x.x.js
+++ b/lib/flow-typed/npm/tcomb_v3.x.x.js
@@ -117,7 +117,7 @@
codomain: TType<T>,
name?: string,
): TDict<{ [key: S]: T }>,
- union<+T>(types: $ReadOnlyArray<TType<T>>, name?: string): TUnion<T>,
+ union<T>(types: $ReadOnlyArray<TType<T>>, name?: string): TUnion<T>,
+enums: {
of(enums: $ReadOnlyArray<string> | $ReadOnlyArray<number>, name?: string): TEnums,
},
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
@@ -47,7 +47,7 @@
storeKey?: string,
|};
- declare type MapStateToProps<-S, -OP, +SP> =
+ declare type MapStateToProps<S, OP, SP> =
| ((state: S, ownProps: OP) => SP)
// If you want to use the factory function but get a strange error
// like "function is not an object" then just type the factory function
@@ -58,7 +58,7 @@
declare type Bind<D> = <A, R>((...A) => R) => (...A) => $Call<D, R>;
- declare type MapDispatchToPropsFn<D, -OP, +DP> =
+ declare type MapDispatchToPropsFn<D, OP, DP> =
| ((dispatch: D, ownProps: OP) => DP)
// If you want to use the factory function but get a strange error
// like "function is not an object" then just type the factory function
@@ -90,14 +90,14 @@
declare type MergeOPDP<OP, DP> = {| ...$Exact<OP>, ...DP |};
declare type MergeOPSPDP<OP, SP, DP> = {| ...$Exact<OP>, ...SP, ...DP |};
- declare export function connect<-P, -OP, -SP, -DP, -S, -D>(
+ declare export function connect<P, OP, SP, DP, S, D>(
mapStateToProps?: null | void,
mapDispatchToProps?: null | void,
mergeProps?: null | void,
options?: ?Options<S, OP, {||}, MergeOP<OP, D>>,
): Connector<P, OP, MergeOP<OP, D>>;
- declare export function connect<-P, -OP, -SP, -DP, -S, -D>(
+ declare export function connect<P, OP, SP, DP, S, D>(
// If you get error here try adding return type to your mapStateToProps function
mapStateToProps: MapStateToProps<S, OP, SP>,
mapDispatchToProps?: null | void,
@@ -107,7 +107,7 @@
// In this case DP is an object of functions which has been bound to dispatch
// by the given mapDispatchToProps function.
- declare export function connect<-P, -OP, -SP, -DP, S, D>(
+ declare export function connect<P, OP, SP, DP, S, D>(
mapStateToProps: null | void,
mapDispatchToProps: MapDispatchToPropsFn<D, OP, DP>,
mergeProps?: null | void,
@@ -117,14 +117,14 @@
// In this case DP is an object of action creators not yet bound to dispatch,
// this difference is not important in the vanila redux,
// but in case of usage with redux-thunk, the return type may differ.
- declare export function connect<-P, -OP, -SP, -DP, S, D>(
+ declare export function connect<P, OP, SP, DP, S, D>(
mapStateToProps: null | void,
mapDispatchToProps: DP,
mergeProps?: null | void,
options?: ?Options<S, OP, {||}, MergeOPDP<OP, DP>>,
): Connector<P, OP, MergeOPDP<OP, $ObjMap<DP, Bind<D>>>>;
- declare export function connect<-P, -OP, -SP, -DP, S, D>(
+ declare export function connect<P, OP, SP, DP, S, D>(
// If you get error here try adding return type to your mapStateToProps function
mapStateToProps: MapStateToProps<S, OP, SP>,
mapDispatchToProps: MapDispatchToPropsFn<D, OP, DP>,
@@ -132,7 +132,7 @@
options?: ?Options<S, OP, SP, {| ...OP, ...SP, ...DP |}>,
): Connector<P, OP, {| ...OP, ...SP, ...DP |}>;
- declare export function connect<-P, -OP, -SP, -DP, S, D>(
+ declare export function connect<P, OP, SP, DP, S, D>(
// If you get error here try adding return type to your mapStateToProps function
mapStateToProps: MapStateToProps<S, OP, SP>,
mapDispatchToProps: DP,
@@ -142,13 +142,13 @@
// With `mergeProps` argument
- declare type MergeProps<+P, -OP, -SP, -DP> = (
+ declare type MergeProps<P, OP, SP, DP> = (
stateProps: SP,
dispatchProps: DP,
ownProps: OP,
) => P;
- declare export function connect<-P, -OP, -SP: {||}, -DP: {||}, S, D>(
+ declare export function connect<P, OP, SP: {||}, DP: {||}, S, D>(
mapStateToProps: null | void,
mapDispatchToProps: null | void,
// If you get error here try adding return type to you mapStateToProps function
@@ -156,7 +156,7 @@
options?: ?Options<S, OP, {||}, P>,
): Connector<P, OP, P>;
- declare export function connect<-P, -OP, -SP, -DP: {||}, S, D>(
+ declare export function connect<P, OP, SP, DP: {||}, S, D>(
mapStateToProps: MapStateToProps<S, OP, SP>,
mapDispatchToProps: null | void,
// If you get error here try adding return type to you mapStateToProps function
@@ -166,7 +166,7 @@
// In this case DP is an object of functions which has been bound to dispatch
// by the given mapDispatchToProps function.
- declare export function connect<-P, -OP, -SP: {||}, -DP, S, D>(
+ declare export function connect<P, OP, SP: {||}, DP, S, D>(
mapStateToProps: null | void,
mapDispatchToProps: MapDispatchToPropsFn<D, OP, DP>,
mergeProps: MergeProps<P, OP, {||}, DP>,
@@ -176,7 +176,7 @@
// In this case DP is an object of action creators not yet bound to dispatch,
// this difference is not important in the vanila redux,
// but in case of usage with redux-thunk, the return type may differ.
- declare export function connect<-P, -OP, -SP: {||}, -DP, S, D>(
+ declare export function connect<P, OP, SP: {||}, DP, S, D>(
mapStateToProps: null | void,
mapDispatchToProps: DP,
mergeProps: MergeProps<P, OP, {||}, $ObjMap<DP, Bind<D>>>,
@@ -185,7 +185,7 @@
// In this case DP is an object of functions which has been bound to dispatch
// by the given mapDispatchToProps function.
- declare export function connect<-P, -OP, -SP, -DP, S, D>(
+ declare export function connect<P, OP, SP, DP, S, D>(
mapStateToProps: MapStateToProps<S, OP, SP>,
mapDispatchToProps: MapDispatchToPropsFn<D, OP, DP>,
mergeProps: MergeProps<P, OP, SP, DP>,
@@ -195,7 +195,7 @@
// In this case DP is an object of action creators not yet bound to dispatch,
// this difference is not important in the vanila redux,
// but in case of usage with redux-thunk, the return type may differ.
- declare export function connect<-P, -OP, -SP, -DP, S, D>(
+ declare export function connect<P, OP, SP, DP, S, D>(
mapStateToProps: MapStateToProps<S, OP, SP>,
mapDispatchToProps: DP,
mergeProps: MergeProps<P, OP, SP, $ObjMap<DP, Bind<D>>>,
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
@@ -47,7 +47,7 @@
storeKey?: string,
|};
- declare type MapStateToProps<-S, -OP, +SP> =
+ declare type MapStateToProps<S, OP, SP> =
| ((state: S, ownProps: OP) => SP)
// If you want to use the factory function but get a strange error
// like "function is not an object" then just type the factory function
@@ -58,7 +58,7 @@
declare type Bind<D> = <A, R>((...A) => R) => (...A) => $Call<D, R>;
- declare type MapDispatchToPropsFn<D, -OP, +DP> =
+ declare type MapDispatchToPropsFn<D, OP, DP> =
| ((dispatch: D, ownProps: OP) => DP)
// If you want to use the factory function but get a strange error
// like "function is not an object" then just type the factory function
@@ -90,14 +90,14 @@
declare type MergeOPDP<OP, DP> = {| ...$Exact<OP>, ...DP |};
declare type MergeOPSPDP<OP, SP, DP> = {| ...$Exact<OP>, ...SP, ...DP |};
- declare export function connect<-P, -OP, -SP, -DP, -S, -D>(
+ declare export function connect<P, OP, SP, DP, S, D>(
mapStateToProps?: null | void,
mapDispatchToProps?: null | void,
mergeProps?: null | void,
options?: ?Options<S, OP, {||}, MergeOP<OP, D>>,
): Connector<P, OP, MergeOP<OP, D>>;
- declare export function connect<-P, -OP, -SP, -DP, -S, -D>(
+ declare export function connect<P, OP, SP, DP, S, D>(
// If you get error here try adding return type to your mapStateToProps function
mapStateToProps: MapStateToProps<S, OP, SP>,
mapDispatchToProps?: null | void,
@@ -107,7 +107,7 @@
// In this case DP is an object of functions which has been bound to dispatch
// by the given mapDispatchToProps function.
- declare export function connect<-P, -OP, -SP, -DP, S, D>(
+ declare export function connect<P, OP, SP, DP, S, D>(
mapStateToProps: null | void,
mapDispatchToProps: MapDispatchToPropsFn<D, OP, DP>,
mergeProps?: null | void,
@@ -117,14 +117,14 @@
// In this case DP is an object of action creators not yet bound to dispatch,
// this difference is not important in the vanila redux,
// but in case of usage with redux-thunk, the return type may differ.
- declare export function connect<-P, -OP, -SP, -DP, S, D>(
+ declare export function connect<P, OP, SP, DP, S, D>(
mapStateToProps: null | void,
mapDispatchToProps: DP,
mergeProps?: null | void,
options?: ?Options<S, OP, {||}, MergeOPDP<OP, DP>>,
): Connector<P, OP, MergeOPDP<OP, $ObjMap<DP, Bind<D>>>>;
- declare export function connect<-P, -OP, -SP, -DP, S, D>(
+ declare export function connect<P, OP, SP, DP, S, D>(
// If you get error here try adding return type to your mapStateToProps function
mapStateToProps: MapStateToProps<S, OP, SP>,
mapDispatchToProps: MapDispatchToPropsFn<D, OP, DP>,
@@ -132,7 +132,7 @@
options?: ?Options<S, OP, SP, {| ...OP, ...SP, ...DP |}>,
): Connector<P, OP, {| ...OP, ...SP, ...DP |}>;
- declare export function connect<-P, -OP, -SP, -DP, S, D>(
+ declare export function connect<P, OP, SP, DP, S, D>(
// If you get error here try adding return type to your mapStateToProps function
mapStateToProps: MapStateToProps<S, OP, SP>,
mapDispatchToProps: DP,
@@ -142,13 +142,13 @@
// With `mergeProps` argument
- declare type MergeProps<+P, -OP, -SP, -DP> = (
+ declare type MergeProps<P, OP, SP, DP> = (
stateProps: SP,
dispatchProps: DP,
ownProps: OP,
) => P;
- declare export function connect<-P, -OP, -SP: {||}, -DP: {||}, S, D>(
+ declare export function connect<P, OP, SP: {||}, DP: {||}, S, D>(
mapStateToProps: null | void,
mapDispatchToProps: null | void,
// If you get error here try adding return type to you mapStateToProps function
@@ -156,7 +156,7 @@
options?: ?Options<S, OP, {||}, P>,
): Connector<P, OP, P>;
- declare export function connect<-P, -OP, -SP, -DP: {||}, S, D>(
+ declare export function connect<P, OP, SP, DP: {||}, S, D>(
mapStateToProps: MapStateToProps<S, OP, SP>,
mapDispatchToProps: null | void,
// If you get error here try adding return type to you mapStateToProps function
@@ -166,7 +166,7 @@
// In this case DP is an object of functions which has been bound to dispatch
// by the given mapDispatchToProps function.
- declare export function connect<-P, -OP, -SP: {||}, -DP, S, D>(
+ declare export function connect<P, OP, SP: {||}, DP, S, D>(
mapStateToProps: null | void,
mapDispatchToProps: MapDispatchToPropsFn<D, OP, DP>,
mergeProps: MergeProps<P, OP, {||}, DP>,
@@ -176,7 +176,7 @@
// In this case DP is an object of action creators not yet bound to dispatch,
// this difference is not important in the vanila redux,
// but in case of usage with redux-thunk, the return type may differ.
- declare export function connect<-P, -OP, -SP: {||}, -DP, S, D>(
+ declare export function connect<P, OP, SP: {||}, DP, S, D>(
mapStateToProps: null | void,
mapDispatchToProps: DP,
mergeProps: MergeProps<P, OP, {||}, $ObjMap<DP, Bind<D>>>,
@@ -185,7 +185,7 @@
// In this case DP is an object of functions which has been bound to dispatch
// by the given mapDispatchToProps function.
- declare export function connect<-P, -OP, -SP, -DP, S, D>(
+ declare export function connect<P, OP, SP, DP, S, D>(
mapStateToProps: MapStateToProps<S, OP, SP>,
mapDispatchToProps: MapDispatchToPropsFn<D, OP, DP>,
mergeProps: MergeProps<P, OP, SP, DP>,
@@ -195,7 +195,7 @@
// In this case DP is an object of action creators not yet bound to dispatch,
// this difference is not important in the vanila redux,
// but in case of usage with redux-thunk, the return type may differ.
- declare export function connect<-P, -OP, -SP, -DP, S, D>(
+ declare export function connect<P, OP, SP, DP, S, D>(
mapStateToProps: MapStateToProps<S, OP, SP>,
mapDispatchToProps: DP,
mergeProps: MergeProps<P, OP, SP, $ObjMap<DP, Bind<D>>>,

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 6, 7:51 PM (14 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5840511
Default Alt Text
D15002.1765050680.diff (24 KB)

Event Timeline