redux-smart-creators
Version:
Smart creators for actions and reducers
3 lines (2 loc) • 359 B
TypeScript
import { ExtendableBasicActionCreator } from '../types/creator';
export declare function makePackedCreator<PackLabel extends string | null>(packLabel: PackLabel | null): <ActionType extends string>(actionType: ActionType) => PackLabel extends string ? ExtendableBasicActionCreator<`@@${PackLabel}/${ActionType}`> : ExtendableBasicActionCreator<ActionType>;