UNPKG

@ngrx/signals

Version:

Reactive Store and Set of Utilities for Angular Signals

18 lines (17 loc) 895 B
import { PartialStateUpdater } from '@ngrx/signals'; import { EntityId, EntityState, NamedEntityState, SelectEntityId } from '../models'; export declare function prependEntity<Entity extends { id: EntityId; }>(entity: Entity): PartialStateUpdater<EntityState<Entity>>; export declare function prependEntity<Entity, Collection extends string>(entity: Entity, config: { collection: Collection; selectId: SelectEntityId<NoInfer<Entity>>; }): PartialStateUpdater<NamedEntityState<Entity, Collection>>; export declare function prependEntity<Entity extends { id: EntityId; }, Collection extends string>(entity: Entity, config: { collection: Collection; }): PartialStateUpdater<NamedEntityState<Entity, Collection>>; export declare function prependEntity<Entity>(entity: Entity, config: { selectId: SelectEntityId<NoInfer<Entity>>; }): PartialStateUpdater<EntityState<Entity>>;