@stemy/ngx-utils 19.2.15 → 19.2.16
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.
|
@@ -141,11 +141,11 @@ export interface IConfirmDialogConfig {
|
|
|
141
141
|
cancelText?: string;
|
|
142
142
|
cancelClasses?: string;
|
|
143
143
|
}
|
|
144
|
-
export interface IDialogService {
|
|
145
|
-
dialog(config: IDialogConfig):
|
|
146
|
-
confirm(config: IConfirmDialogConfig):
|
|
144
|
+
export interface IDialogService<DR = any> {
|
|
145
|
+
dialog(config: IDialogConfig): DR;
|
|
146
|
+
confirm(config: IConfirmDialogConfig): DR;
|
|
147
147
|
}
|
|
148
|
-
export declare const DIALOG_SERVICE: InjectionToken<IDialogService
|
|
148
|
+
export declare const DIALOG_SERVICE: InjectionToken<IDialogService<any>>;
|
|
149
149
|
export declare const SOCKET_IO_PATH: InjectionToken<string>;
|
|
150
150
|
export interface IPromiseService {
|
|
151
151
|
zone: NgZone;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { IConfirmDialogConfig, IDialogConfig, IDialogService, IToasterService } from "../common-types";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class BaseDialogService implements IDialogService {
|
|
3
|
+
export declare class BaseDialogService<DR = any> implements IDialogService<DR> {
|
|
4
4
|
readonly toaster: IToasterService;
|
|
5
5
|
constructor(toaster: IToasterService);
|
|
6
|
-
dialog(config: IDialogConfig):
|
|
7
|
-
confirm(config: IConfirmDialogConfig):
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BaseDialogService
|
|
9
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<BaseDialogService
|
|
6
|
+
dialog(config: IDialogConfig): DR;
|
|
7
|
+
confirm(config: IConfirmDialogConfig): DR;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseDialogService<any>, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BaseDialogService<any>>;
|
|
10
10
|
}
|