diff --git a/ui/dialogs/dialogs.d.ts b/ui/dialogs/dialogs.d.ts index 8658fcb73..161ab8b09 100644 --- a/ui/dialogs/dialogs.d.ts +++ b/ui/dialogs/dialogs.d.ts @@ -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; /** * 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; /** * Provides options for the alert.