From 84d79b44dc791153669abc4b666d332f5596849c Mon Sep 17 00:00:00 2001 From: Nathanael Anderson Date: Fri, 13 Nov 2015 13:18:36 -0600 Subject: [PATCH] Update the dialogs.d.ts so that everything can use the cancelable. ;-) --- ui/dialogs/dialogs.d.ts | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/ui/dialogs/dialogs.d.ts b/ui/dialogs/dialogs.d.ts index 7db01cdc8..d134fc707 100644 --- a/ui/dialogs/dialogs.d.ts +++ b/ui/dialogs/dialogs.d.ts @@ -81,11 +81,21 @@ declare module "ui/dialogs" { * @param options The options for the dialog box. */ export function action(options: ActionOptions): Promise; + + /** + * Provides options for the dialog. + */ + export interface CancelableOptions { + /** + * [Android only] Gets or sets if the dialog can be canceled by taping outside of the dialog. + */ + cancelable?: boolean; + } /** * Provides options for the dialog. */ - export interface ActionOptions { + export interface ActionOptions extends CancelableOptions { /** * Gets or sets the dialog title. */ @@ -110,7 +120,7 @@ declare module "ui/dialogs" { /** * Provides options for the dialog. */ - export interface DialogOptions { + export interface DialogOptions extends CancelableOptions { /** * Gets or sets the dialog title. */ @@ -120,12 +130,7 @@ declare module "ui/dialogs" { * Gets or sets the dialog message. */ message?: string; - - /** - * Sets if the Android dialog can be canceled via clicking outside of it - * defaults to true. - */ - cancelable?: boolean; + } /**