From bab2971c58149ee605cb8ad2aaed86620c040297 Mon Sep 17 00:00:00 2001 From: John-Luke Date: Thu, 24 Nov 2016 14:37:57 -0300 Subject: [PATCH] fix(headercolor): solve typo in usage and chore --- src/plugins/headercolor.ts | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/plugins/headercolor.ts b/src/plugins/headercolor.ts index 66195fd2..34780e1c 100644 --- a/src/plugins/headercolor.ts +++ b/src/plugins/headercolor.ts @@ -9,13 +9,7 @@ import { Plugin, Cordova } from './plugin'; * ```typescript * import { HeaderColor } from 'ionic-native'; * - * HeaderColor.tint("#becb29").then( - * (success) => { - * console.log("Your header have a color now") - * }, - * (error) => { - * console.log("Your header not have a color now") - * } + * HeaderColor.tint("#becb29"); * ``` */ @Plugin({ @@ -30,9 +24,9 @@ export class HeaderColor { /** * Set a color to the task header * @param color {string} The color - * @return {Promise} + * @param {Object} Optional callbacks */ @Cordova() - static tint(color: string): Promise { return; } + static tint(color: string, callbacks?: {success?: Function, failure?: Function}): void { } } \ No newline at end of file