@plurid/plurid-react
Version:
React implementation of Plurid to explore the web in three dimensions
4 lines (3 loc) • 412 B
TypeScript
import { ActionCreatorWithPayload, ActionCreatorWithoutPayload } from '@reduxjs/toolkit';
export declare type DispatchAction<A> = A extends ActionCreatorWithPayload<infer P, infer T> ? (payload: P) => ReturnType<ActionCreatorWithPayload<P, T>> : void;
export declare type DispatchActionWithoutPayload<A> = A extends ActionCreatorWithoutPayload<infer T> ? () => ReturnType<ActionCreatorWithoutPayload<T>> : void;