From b576476a3378fd4824efecfe482dd47f7f042827 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 12 Feb 2020 11:29:47 +0100 Subject: [PATCH] Some fixes for defined types --- api/js/egw_action/egw_action.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/js/egw_action/egw_action.d.ts b/api/js/egw_action/egw_action.d.ts index 86b69ce354..9a289bcd03 100644 --- a/api/js/egw_action/egw_action.d.ts +++ b/api/js/egw_action/egw_action.d.ts @@ -46,7 +46,7 @@ declare function egw_getObjectManager(_id: any, _create?: boolean, _search_depth * @param {boolean} _create * @return {egwActionObjectManager} */ -declare function egw_getAppObjectManager(_create: boolean): typeof egwActionObjectManager; +declare function egw_getAppObjectManager(_create?: boolean): typeof egwActionObjectManager; /** * Returns the action manager for the current application * @@ -282,8 +282,8 @@ declare class egwActionObject { focusedChild: string | egwActionObject; setAOI(_aoi: egwActionObjectInterface): void; iface: egwActionObjectInterface; - getObjectById(_id: string, _search_depth: number): egwActionObject; - addObject(_id: any, _interface: any, _flags: number): any; + getObjectById(_id: string, _search_depth?: number): egwActionObject; + addObject(_id: any, _interface: any, _flags?: number): any; insertObject(_index: number, _id: any, _iface: any, _flags: number): any; clear(): void; remove(): void; @@ -310,7 +310,7 @@ declare class egwActionObject { setAllSelected(_selected: boolean, _informParent: boolean): void; updateSelectedChildren(_child: string | egwActionObject, _selected: boolean): void; updateFocusedChild(_child: string | egwActionObject, _focused: boolean): void; - updateActionLinks(_actionLinks: any[], _recursive: boolean, _doCreate: boolean): void; + updateActionLinks(_actionLinks: any[], _recursive?: boolean, _doCreate?: boolean): void; _reconnectCallback(): void; registerActions(): void; unregisterActions(): void;