From 427527a1294be67f2df127ece3c453072f8ab825 Mon Sep 17 00:00:00 2001 From: Ibby Date: Tue, 6 Dec 2016 09:08:02 -0500 Subject: [PATCH] refractor(dialogs): refractor interfaces to avoid duplicates --- src/plugins/dialogs.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/plugins/dialogs.ts b/src/plugins/dialogs.ts index 3d67507d..c0bd11f7 100644 --- a/src/plugins/dialogs.ts +++ b/src/plugins/dialogs.ts @@ -1,7 +1,7 @@ import { Cordova, Plugin } from './plugin'; -export interface PromptCallback { +export interface DialogsPromptCallback { /** * The index of the pressed button. (Number) Note that the index uses one-based indexing, so the value is 1, 2, 3, etc. @@ -31,6 +31,8 @@ export interface PromptCallback { * * * ``` + * @interfaces + * DialogsPromptCallback */ @Plugin({ pluginName: 'Dialogs', @@ -80,7 +82,7 @@ export class Dialogs { * @param {string} title Dialog title. (Optional, defaults to Prompt) * @param {Array} buttonLabels Array of strings specifying button labels. (Optional, defaults to ["OK","Cancel"]) * @param {string} defaultText Default textbox input value. (Optional, Default: empty string) - * @returns {Promise} Returns a promise that resolves an object with the button index clicked and the text entered + * @returns {Promise} Returns a promise that resolves an object with the button index clicked and the text entered */ @Cordova({ successIndex: 1, @@ -91,7 +93,7 @@ export class Dialogs { title: string = 'Prompt', buttonLabels: Array = ['OK', 'Cancel'], defaultText: string = '' - ): Promise { return; } + ): Promise { return; } /**