state_adapter.d.ts 498 B

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