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 = | ((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 = ((...A) => R) => (...A) => $Call; - declare type MapDispatchToPropsFn = + declare type MapDispatchToPropsFn = | ((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 = {| ...$Exact, ...DP |}; declare type MergeOPSPDP = {| ...$Exact, ...SP, ...DP |}; - declare export function connect<-P, -OP, -SP, -DP, -S, -D>( + declare export function connect( mapStateToProps?: null | void, mapDispatchToProps?: null | void, mergeProps?: null | void, options?: ?Options>, ): Connector>; - declare export function connect<-P, -OP, -SP, -DP, -S, -D>( + declare export function connect( // If you get error here try adding return type to your mapStateToProps function mapStateToProps: MapStateToProps, 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( mapStateToProps: null | void, mapDispatchToProps: MapDispatchToPropsFn, 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( mapStateToProps: null | void, mapDispatchToProps: DP, mergeProps?: null | void, options?: ?Options>, ): Connector>>>; - declare export function connect<-P, -OP, -SP, -DP, S, D>( + declare export function connect( // If you get error here try adding return type to your mapStateToProps function mapStateToProps: MapStateToProps, mapDispatchToProps: MapDispatchToPropsFn, @@ -132,7 +132,7 @@ options?: ?Options, ): Connector; - declare export function connect<-P, -OP, -SP, -DP, S, D>( + declare export function connect( // If you get error here try adding return type to your mapStateToProps function mapStateToProps: MapStateToProps, mapDispatchToProps: DP, @@ -142,13 +142,13 @@ // With `mergeProps` argument - declare type MergeProps<+P, -OP, -SP, -DP> = ( + declare type MergeProps = ( stateProps: SP, dispatchProps: DP, ownProps: OP, ) => P; - declare export function connect<-P, -OP, -SP: {||}, -DP: {||}, S, D>( + declare export function connect( 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, ): Connector; - declare export function connect<-P, -OP, -SP, -DP: {||}, S, D>( + declare export function connect( mapStateToProps: MapStateToProps, 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( mapStateToProps: null | void, mapDispatchToProps: MapDispatchToPropsFn, mergeProps: MergeProps, @@ -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( mapStateToProps: null | void, mapDispatchToProps: DP, mergeProps: MergeProps>>, @@ -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( mapStateToProps: MapStateToProps, mapDispatchToProps: MapDispatchToPropsFn, mergeProps: MergeProps, @@ -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( mapStateToProps: MapStateToProps, mapDispatchToProps: DP, mergeProps: MergeProps>>, 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 = | ((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 = ((...A) => R) => (...A) => $Call; - declare type MapDispatchToPropsFn = + declare type MapDispatchToPropsFn = | ((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 = {| ...$Exact, ...DP |}; declare type MergeOPSPDP = {| ...$Exact, ...SP, ...DP |}; - declare export function connect<-P, -OP, -SP, -DP, -S, -D>( + declare export function connect( mapStateToProps?: null | void, mapDispatchToProps?: null | void, mergeProps?: null | void, options?: ?Options>, ): Connector>; - declare export function connect<-P, -OP, -SP, -DP, -S, -D>( + declare export function connect( // If you get error here try adding return type to your mapStateToProps function mapStateToProps: MapStateToProps, 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( mapStateToProps: null | void, mapDispatchToProps: MapDispatchToPropsFn, 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( mapStateToProps: null | void, mapDispatchToProps: DP, mergeProps?: null | void, options?: ?Options>, ): Connector>>>; - declare export function connect<-P, -OP, -SP, -DP, S, D>( + declare export function connect( // If you get error here try adding return type to your mapStateToProps function mapStateToProps: MapStateToProps, mapDispatchToProps: MapDispatchToPropsFn, @@ -132,7 +132,7 @@ options?: ?Options, ): Connector; - declare export function connect<-P, -OP, -SP, -DP, S, D>( + declare export function connect( // If you get error here try adding return type to your mapStateToProps function mapStateToProps: MapStateToProps, mapDispatchToProps: DP, @@ -142,13 +142,13 @@ // With `mergeProps` argument - declare type MergeProps<+P, -OP, -SP, -DP> = ( + declare type MergeProps = ( stateProps: SP, dispatchProps: DP, ownProps: OP, ) => P; - declare export function connect<-P, -OP, -SP: {||}, -DP: {||}, S, D>( + declare export function connect( 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, ): Connector; - declare export function connect<-P, -OP, -SP, -DP: {||}, S, D>( + declare export function connect( mapStateToProps: MapStateToProps, 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( mapStateToProps: null | void, mapDispatchToProps: MapDispatchToPropsFn, mergeProps: MergeProps, @@ -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( mapStateToProps: null | void, mapDispatchToProps: DP, mergeProps: MergeProps>>, @@ -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( mapStateToProps: MapStateToProps, mapDispatchToProps: MapDispatchToPropsFn, mergeProps: MergeProps, @@ -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( mapStateToProps: MapStateToProps, mapDispatchToProps: DP, mergeProps: MergeProps>>, 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, name?: string, ): TDict<{ [key: S]: T }>, - union<+T>(types: $ReadOnlyArray>, name?: string): TUnion, + union(types: $ReadOnlyArray>, name?: string): TUnion, +enums: { of(enums: $ReadOnlyArray | $ReadOnlyArray, 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 = | ((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 = ((...A) => R) => (...A) => $Call; - declare type MapDispatchToPropsFn = + declare type MapDispatchToPropsFn = | ((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 = {| ...$Exact, ...DP |}; declare type MergeOPSPDP = {| ...$Exact, ...SP, ...DP |}; - declare export function connect<-P, -OP, -SP, -DP, -S, -D>( + declare export function connect( mapStateToProps?: null | void, mapDispatchToProps?: null | void, mergeProps?: null | void, options?: ?Options>, ): Connector>; - declare export function connect<-P, -OP, -SP, -DP, -S, -D>( + declare export function connect( // If you get error here try adding return type to your mapStateToProps function mapStateToProps: MapStateToProps, 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( mapStateToProps: null | void, mapDispatchToProps: MapDispatchToPropsFn, 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( mapStateToProps: null | void, mapDispatchToProps: DP, mergeProps?: null | void, options?: ?Options>, ): Connector>>>; - declare export function connect<-P, -OP, -SP, -DP, S, D>( + declare export function connect( // If you get error here try adding return type to your mapStateToProps function mapStateToProps: MapStateToProps, mapDispatchToProps: MapDispatchToPropsFn, @@ -132,7 +132,7 @@ options?: ?Options, ): Connector; - declare export function connect<-P, -OP, -SP, -DP, S, D>( + declare export function connect( // If you get error here try adding return type to your mapStateToProps function mapStateToProps: MapStateToProps, mapDispatchToProps: DP, @@ -142,13 +142,13 @@ // With `mergeProps` argument - declare type MergeProps<+P, -OP, -SP, -DP> = ( + declare type MergeProps = ( stateProps: SP, dispatchProps: DP, ownProps: OP, ) => P; - declare export function connect<-P, -OP, -SP: {||}, -DP: {||}, S, D>( + declare export function connect( 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, ): Connector; - declare export function connect<-P, -OP, -SP, -DP: {||}, S, D>( + declare export function connect( mapStateToProps: MapStateToProps, 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( mapStateToProps: null | void, mapDispatchToProps: MapDispatchToPropsFn, mergeProps: MergeProps, @@ -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( mapStateToProps: null | void, mapDispatchToProps: DP, mergeProps: MergeProps>>, @@ -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( mapStateToProps: MapStateToProps, mapDispatchToProps: MapDispatchToPropsFn, mergeProps: MergeProps, @@ -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( mapStateToProps: MapStateToProps, mapDispatchToProps: DP, mergeProps: MergeProps>>, 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 = | ((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 = ((...A) => R) => (...A) => $Call; - declare type MapDispatchToPropsFn = + declare type MapDispatchToPropsFn = | ((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 = {| ...$Exact, ...DP |}; declare type MergeOPSPDP = {| ...$Exact, ...SP, ...DP |}; - declare export function connect<-P, -OP, -SP, -DP, -S, -D>( + declare export function connect( mapStateToProps?: null | void, mapDispatchToProps?: null | void, mergeProps?: null | void, options?: ?Options>, ): Connector>; - declare export function connect<-P, -OP, -SP, -DP, -S, -D>( + declare export function connect( // If you get error here try adding return type to your mapStateToProps function mapStateToProps: MapStateToProps, 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( mapStateToProps: null | void, mapDispatchToProps: MapDispatchToPropsFn, 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( mapStateToProps: null | void, mapDispatchToProps: DP, mergeProps?: null | void, options?: ?Options>, ): Connector>>>; - declare export function connect<-P, -OP, -SP, -DP, S, D>( + declare export function connect( // If you get error here try adding return type to your mapStateToProps function mapStateToProps: MapStateToProps, mapDispatchToProps: MapDispatchToPropsFn, @@ -132,7 +132,7 @@ options?: ?Options, ): Connector; - declare export function connect<-P, -OP, -SP, -DP, S, D>( + declare export function connect( // If you get error here try adding return type to your mapStateToProps function mapStateToProps: MapStateToProps, mapDispatchToProps: DP, @@ -142,13 +142,13 @@ // With `mergeProps` argument - declare type MergeProps<+P, -OP, -SP, -DP> = ( + declare type MergeProps = ( stateProps: SP, dispatchProps: DP, ownProps: OP, ) => P; - declare export function connect<-P, -OP, -SP: {||}, -DP: {||}, S, D>( + declare export function connect( 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, ): Connector; - declare export function connect<-P, -OP, -SP, -DP: {||}, S, D>( + declare export function connect( mapStateToProps: MapStateToProps, 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( mapStateToProps: null | void, mapDispatchToProps: MapDispatchToPropsFn, mergeProps: MergeProps, @@ -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( mapStateToProps: null | void, mapDispatchToProps: DP, mergeProps: MergeProps>>, @@ -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( mapStateToProps: MapStateToProps, mapDispatchToProps: MapDispatchToPropsFn, mergeProps: MergeProps, @@ -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( mapStateToProps: MapStateToProps, mapDispatchToProps: DP, mergeProps: MergeProps>>,