UNPKG

redux-smart-creators

Version:
3 lines (2 loc) 359 B
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>;