add Promise<Et2Dialog> return type to openDialog

This commit is contained in:
ralf 2023-07-14 08:54:07 +02:00
parent 76307bd52d
commit cae7ff0c01
2 changed files with 4 additions and 3 deletions

View File

@ -755,7 +755,7 @@ export abstract class EgwApp
* @param _menuaction * @param _menuaction
* @return Promise<Et2Dialog> * @return Promise<Et2Dialog>
*/ */
openDialog(_menuaction : string) openDialog(_menuaction : string) : Promise<Et2Dialog>
{ {
let resolver; let resolver;
let rejector; let rejector;

View File

@ -14,6 +14,7 @@
*/ */
import type {EgwApp} from "./egw_app"; import type {EgwApp} from "./egw_app";
import type {Et2Dialog} from "../etemplate/Et2Dialog/Et2Dialog";
/** /**
* Global egw object (for now created by the diverse JavaScript files) with a TypeScript interface * Global egw object (for now created by the diverse JavaScript files) with a TypeScript interface
@ -1118,9 +1119,9 @@ declare interface IegwWndLocal extends IegwGlobal
* For popups you have to use the app.ts method openDialog(), which creates the dialog in the correct window / popup. * For popups you have to use the app.ts method openDialog(), which creates the dialog in the correct window / popup.
* *
* @param string _menuaction * @param string _menuaction
* @return Promise<any> * @return Promise<Et2Dialog>
*/ */
openDialog(_menuaction : string) : Promise<any>; openDialog(_menuaction : string) : Promise<Et2Dialog>;
/** /**
* Open a (centered) popup window with given size and url * Open a (centered) popup window with given size and url