Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // @types/redux
- export interface Dispatch<A extends Action = AnyAction> {
- <T extends A>(action: T): T;
- }
- // @types/react-redux
- interface MapDispatchToPropsFunction<TDispatchProps, TOwnProps> {
- (dispatch: Dispatch, ownProps: TOwnProps): TDispatchProps;
- }
- interface MapDispatchToPropsFactory<TDispatchProps, TOwnProps> {
- (dispatch: Dispatch, ownProps: TOwnProps): MapDispatchToProps<TDispatchProps, TOwnProps>;
- }
Advertisement
Add Comment
Please, Sign In to add comment