several improvements in typings

This commit is contained in:
unknown
2015-09-02 18:14:58 +02:00
parent 705f6ab7c4
commit 3e2eb03db2

View File

@@ -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<void>;
}
@@ -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 {