ack-angular
Version:
Extra special directives, components, providers and pipes to aide in tackling everyday interface development needs in Angular2
21 lines (20 loc) • 680 B
TypeScript
import * as i0 from "@angular/core";
export declare class ErrorLog {
log: any[];
maxLog: number;
monitorWindow(win?: any): void;
reject(err: any): Promise<never>;
rejector(): (err: any) => Promise<never>;
add(e: any, toConsole?: any): Error;
paramAudit(e: any, toConsole?: any): {
data?: any;
};
/** Convert Error object to a regular object */
objectifyError(err: any): {
data?: any;
};
/** same as reject but uses native throw instead of native Promise.reject */
rethrow(err: any): void;
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorLog, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<ErrorLog>;
}