prompt declaration fixed

This commit is contained in:
Vladimir Enchev
2014-06-03 18:43:03 +03:00
parent ae7705aa13
commit 5095c5a5a7

View File

@@ -28,13 +28,13 @@
* The prompt() method displays a dialog box that prompts the visitor for input.
* @param text The text to display in the dialog box.
*/
function prompt(text: string, defaultText?: string): void;
function prompt(text: string, defaultText?: string): promises.Promise<string>;
/**
* The prompt() method displays a dialog box that prompts the visitor for input.
* @param options The options for the dialog box.
*/
function prompt(options: PromptOptions): void;
function prompt(options: PromptOptions): promises.Promise<string>;
/**
* Provides options for the alert.