UNPKG

498 BTypeScriptView Raw
1import type { EntityState, PreventAny } from './models';
2import type { PayloadAction } from '../createAction';
3import { IsAny } from '../tsHelpers';
4export declare function createSingleArgumentStateOperator<V>(mutator: (state: EntityState<V>) => void): <S extends EntityState<V>>(state: IsAny<S, EntityState<V>, S>) => S;
5export declare function createStateOperator<V, R>(mutator: (arg: R, state: EntityState<V>) => void): <S extends EntityState<V>>(state: S, arg: R | PayloadAction<R>) => S;