mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
prompt declaration fixed
This commit is contained in:
4
ui/dialogs/dialogs.d.ts
vendored
4
ui/dialogs/dialogs.d.ts
vendored
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user