dispatch

export type Dispatch = <A extends any[]>(
func: (...args: A) => void,
) => (...args: A) => void;

Dispatch an action.

Usage

dispatch(myAction)(param1, param2);