zek 14.2.71 → 14.2.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,7 +6,7 @@ import { AlertService } from './alert.service';
|
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/** Type of the handleError function returned by HttpErrorHandler.createHandleError */
|
|
8
8
|
export declare type HandleError = <T = any>(operation?: string, result?: T, show?: boolean) => (error: HttpErrorResponse) => Observable<T>;
|
|
9
|
-
export declare type
|
|
9
|
+
export declare type HandleErrorResult = <T = any>(operation?: string, show?: boolean) => (error: HttpErrorResponse) => Observable<T>;
|
|
10
10
|
/** Handles HttpClient errors */
|
|
11
11
|
export declare class HttpErrorHandler {
|
|
12
12
|
private readonly alert;
|
|
@@ -15,7 +15,7 @@ export declare class HttpErrorHandler {
|
|
|
15
15
|
constructor(alert: AlertService, translate: TranslateService, router: Router);
|
|
16
16
|
/** Create curried handleError function that already knows the service name */
|
|
17
17
|
createHandleError: (serviceName?: string) => <T>(operation?: string, result?: T, show?: boolean) => (response: HttpErrorResponse) => Observable<T>;
|
|
18
|
-
|
|
18
|
+
createHandleErrorResult: (serviceName?: string) => <T>(operation?: string, show?: boolean) => (response: HttpErrorResponse) => Observable<unknown>;
|
|
19
19
|
/**
|
|
20
20
|
* Returns a function that handles Http operation failures.
|
|
21
21
|
* This error handler lets the app continue to run as if no error occurred.
|
|
@@ -25,7 +25,6 @@ export declare class HttpErrorHandler {
|
|
|
25
25
|
* @param show - optional value to show error
|
|
26
26
|
*/
|
|
27
27
|
handleError<T>(serviceName?: string, operation?: string, result?: T, show?: boolean): (response: HttpErrorResponse) => Observable<T>;
|
|
28
|
-
private showError;
|
|
29
28
|
/**
|
|
30
29
|
* Returns a function that handles Http operation failures.
|
|
31
30
|
* This error handler lets the app continue to run as if no error occurred.
|
|
@@ -33,7 +32,8 @@ export declare class HttpErrorHandler {
|
|
|
33
32
|
* @param operation - name of the operation that failed
|
|
34
33
|
* @param show - optional value to show error
|
|
35
34
|
*/
|
|
36
|
-
|
|
35
|
+
handleErrorResult<T>(serviceName?: string, operation?: string, show?: boolean): (response: HttpErrorResponse) => Observable<T>;
|
|
36
|
+
private showError;
|
|
37
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<HttpErrorHandler, never>;
|
|
38
38
|
static ɵprov: i0.ɵɵInjectableDeclaration<HttpErrorHandler>;
|
|
39
39
|
}
|