add Promise<Et2Dialog> return type to openDialog

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

View File

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

View File

@ -14,6 +14,7 @@
*/
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
@ -1130,9 +1131,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.
*
* @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