Closed kLabz closed 6 years ago
Added ReactRedux.connect(...) and ReactRedux.connectAdvanced(...) externs with needed typedefs.
ReactRedux.connect(...)
ReactRedux.connectAdvanced(...)
public static function connect<TStateProps, TDispatchProps, TOwnProps, TProps>( ?mapStateToProps: Function, ?mapDispatchToProps: Dynamic, ?mergeProps: TStateProps -> TDispatchProps -> TOwnProps -> TProps, ?options: Partial<ConnectOptions> ): CreateElementType -> CreateElementType;
public static function connectAdvanced<TFactoryOptions, TState, TOwnProps, TProps, TOptions:ConnectAdvancedOptions>( selectorFactory: Dispatch -> TFactoryOptions -> (TState -> TOwnProps -> TProps), ?connectOptions: TOptions ):CreateElementType -> CreateElementType;
Added
ReactRedux.connect(...)
andReactRedux.connectAdvanced(...)
externs with needed typedefs.ReactRedux.connect(...)
(doc)ReactRedux.connectAdvanced(...)
(doc)