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

5 lines
446 B
TypeScript
Raw Permalink Normal View History

2022-04-25 02:47:15 +00:00
import type { EntityState, IdSelector, Update, EntityId } from './models';
export declare function selectIdValue<T>(entity: T, selectId: IdSelector<T>): EntityId;
export declare function ensureEntitiesArray<T>(entities: readonly T[] | Record<EntityId, T>): readonly T[];
export declare function splitAddedUpdatedEntities<T>(newEntities: readonly T[] | Record<EntityId, T>, selectId: IdSelector<T>, state: EntityState<T>): [T[], Update<T>[]];