@ngxs-labs/entity-state
Version:
<p align="center"> <img src="https://raw.githubusercontent.com/ngxs-labs/emitter/master/docs/assets/logo.png"> </p>
15 lines (14 loc) • 518 B
TypeScript
import { EntityState } from '../entity-state';
import { Type } from '@angular/core';
export interface EntitySetErrorAction {
payload: Error;
}
export declare class SetError {
/**
* Generates an action that will set the error state for the given state.
* Put undefined to clear the error state.
* @param target The targeted state class
* @param error The error that describes the error state
*/
constructor(target: Type<EntityState<any>>, error: Error | undefined);
}