@ngxs-labs/entity-state
Version:
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.0.5.
15 lines (14 loc) • 504 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);
}