@rxap/ngx-error
Version:
This package provides a comprehensive error handling solution for Angular applications, including interceptors, services, and UI components to display different types of errors in a user-friendly dialog. It supports handling of generic errors, HTTP errors
17 lines (16 loc) • 970 B
TypeScript
import { ComponentType } from '@angular/cdk/overlay';
import { ApplicationRef, WritableSignal } from '@angular/core';
import { Observable } from 'rxjs';
import { IErrorDialogComponent } from './error-dialog/error-dialog.component';
import * as i0 from "@angular/core";
export interface IErrorCaptureDialogService<Error = any> {
open(component: ComponentType<IErrorDialogComponent>, errorList: WritableSignal<Error[]>): Observable<void>;
}
export declare class ErrorCaptureDialogService<Error = any> implements IErrorCaptureDialogService<Error> {
protected readonly applicationRef: ApplicationRef;
protected readonly document: Document;
protected readonly disabled: boolean;
open(component: ComponentType<IErrorDialogComponent>, errorList: WritableSignal<Error[]>): Observable<void>;
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorCaptureDialogService<any>, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<ErrorCaptureDialogService<any>>;
}