@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): void;
146
- confirm(config: IConfirmDialogConfig): void;
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): void;
7
- confirm(config: IConfirmDialogConfig): void;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<BaseDialogService, never>;
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stemy/ngx-utils",
3
- "version": "19.2.15",
3
+ "version": "19.2.16",
4
4
  "license": "MIT",
5
5
  "public": true,
6
6
  "repository": "https://github.com/stemyke/ngx-utils.git",