@isaiahiroko/ng-interceptors
Version:
Angular interceptors for token authorization, local and remote store synchronization and global notification
14 lines (13 loc) • 559 B
TypeScript
import { HttpRequest, HttpHandler, HttpInterceptor, HttpEvent } from '@angular/common/http';
import { Observable } from 'rxjs';
export declare class LoaderServiceContract {
start(type?: string): void;
stop(): void;
notify(message: string, title?: string): void;
toast(message: string, title?: string): void;
}
export declare class NotifInterceptor implements HttpInterceptor {
private notif;
constructor(notif: LoaderServiceContract);
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
}