mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-24 17:35:16 +00:00
5 lines
446 B
TypeScript
5 lines
446 B
TypeScript
|
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>[]];
|