UNPKG

@ngxs-labs/entity-state

Version:

<p align="center"> <img src="https://raw.githubusercontent.com/ngxs-labs/emitter/master/docs/assets/logo.png"> </p>

22 lines (21 loc) 801 B
import { EntitySelector, Payload } from './type-alias'; import { EntityState } from '../entity-state'; import { Type } from '@angular/core'; export declare type EntityRemoveAction<T> = Payload<EntitySelector<T>>; export declare class Remove<T> { /** * Generates an action that will remove the given entities from the state. * @param target The targeted state class * @param payload An EntitySelector payload * @see EntitySelector * @see RemoveAll */ constructor(target: Type<EntityState<T>>, payload: EntitySelector<T>); } export declare class RemoveAll { /** * Generates an action that will remove all entities from the state. * @param target The targeted state class */ constructor(target: Type<EntityState<any>>); }