From 3e2eb03db273fa6c3f8df7cfd025a6aa8874639a Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 2 Sep 2015 18:14:58 +0200 Subject: [PATCH] several improvements in typings --- ng-dialog/ng-dialog.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ng-dialog/ng-dialog.d.ts b/ng-dialog/ng-dialog.d.ts index a167aee471..3f045a8e11 100644 --- a/ng-dialog/ng-dialog.d.ts +++ b/ng-dialog/ng-dialog.d.ts @@ -18,14 +18,14 @@ declare module angular.dialog { * @returns {boolean} Indicating whether it exists or not. */ isOpen(id: string): boolean; - close(id: string, value: any); - closeAll(value: any); - getOpenDialogs(); + close(id: string, value?: any): void; + closeAll(value?: any): void; + getOpenDialogs(): string[]; } interface IDialogOpenResult { id: string; - close: Function; + close: (value?: string) => void; closePromise: IPromise; } @@ -47,7 +47,7 @@ declare module angular.dialog { * @param value Any value passed to this function will be attached to the object which resolves on the close promise for this dialog. * For dialogs opened with the openConfirm() method the value is used as the reject reason. */ - closeThisDialog(value: any): void; + closeThisDialog(value?: any): void; } interface IDialogOptions {