@documment/mmp.core
Version:
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.0.1.
38 lines (37 loc) • 914 B
TypeScript
export interface IReactionSeverity {
type: string;
isError: boolean;
isWarning: boolean;
}
export declare class ReactionSeverity implements IReactionSeverity {
type: string;
isError: boolean;
isWarning: boolean;
constructor(params: any);
}
export interface IReactionError {
message: string;
severity: IReactionSeverity;
}
export declare class ReactionError implements IReactionError {
message: string;
severity: IReactionSeverity;
constructor(error: any);
}
export interface IReaction {
isReaction: boolean;
message: string;
errors: {
[name: string]: IReactionError;
};
}
export declare class Reaction implements IReaction {
isReaction: boolean;
message: string;
errors: {
[name: string]: ReactionError;
};
constructor(params?: any);
getError(key: string): ReactionError;
hasError(key: string): boolean;
}