amis-rpc-design/node_modules/@reduxjs/toolkit/dist/entities/state_adapter.d.ts

6 lines
498 B
TypeScript
Raw Normal View History

2023-10-07 19:42:30 +08: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;