GoScrobble/web/node_modules/@reduxjs/toolkit/dist/entities/state_adapter.d.ts

6 lines
498 B
TypeScript
Raw Normal View History

2022-04-25 02:47:15 +00:00
import type { EntityState, PreventAny } from './models';
import type { PayloadAction } from '../createAction';
import { IsAny } from '../tsHelpers';
export declare function createSingleArgumentStateOperator<V>(mutator: (state: EntityState<V>) => void): <S extends EntityState<V>>(state: IsAny<S, EntityState<V>, S>) => S;
export declare function createStateOperator<V, R>(mutator: (arg: R, state: EntityState<V>) => void): <S extends EntityState<V>>(state: S, arg: R | PayloadAction<R>) => S;