redux-smart-creators
Version:
Smart creators for actions and reducers
9 lines (8 loc) • 360 B
TypeScript
import { ExtendableBasicActionCreator, InjectPayload } from '../types/creator';
interface WithLoad {
<ActionType extends string>(basicCreator: Omit<ExtendableBasicActionCreator<ActionType>, 'load'> & {
load?: InjectPayload<ActionType>;
}): ExtendableBasicActionCreator<ActionType>;
}
export declare const withLoad: WithLoad;
export {};