Update the dialogs.d.ts so that everything can use the cancelable. ;-)

This commit is contained in:
Nathanael Anderson
2015-11-13 13:18:36 -06:00
parent bc7fd76498
commit 84d79b44dc

View File

@ -85,7 +85,17 @@ declare module "ui/dialogs" {
/**
* Provides options for the dialog.
*/
export interface ActionOptions {
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 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.
*/
@ -121,11 +131,6 @@ declare module "ui/dialogs" {
*/
message?: string;
/**
* Sets if the Android dialog can be canceled via clicking outside of it
* defaults to true.
*/
cancelable?: boolean;
}
/**