jacekwilczynski

@types/react-redux error

Sep 4th, 2018
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // @types/redux
  2.  
  3. export interface Dispatch<A extends Action = AnyAction> {
  4.   <T extends A>(action: T): T;
  5. }
  6.  
  7. // @types/react-redux
  8.  
  9. interface MapDispatchToPropsFunction<TDispatchProps, TOwnProps> {
  10.     (dispatch: Dispatch, ownProps: TOwnProps): TDispatchProps;
  11. }
  12.  
  13. interface MapDispatchToPropsFactory<TDispatchProps, TOwnProps> {
  14.     (dispatch: Dispatch, ownProps: TOwnProps): MapDispatchToProps<TDispatchProps, TOwnProps>;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment