From db994821577b3d334a4fad0e697226d63b6410dc Mon Sep 17 00:00:00 2001 From: John-Luke Date: Wed, 30 Nov 2016 20:24:33 -0300 Subject: [PATCH] Implement changes requested --- src/plugins/headercolor.ts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/plugins/headercolor.ts b/src/plugins/headercolor.ts index 34780e1c7..7f913a3f3 100644 --- a/src/plugins/headercolor.ts +++ b/src/plugins/headercolor.ts @@ -23,10 +23,13 @@ export class HeaderColor { /** * Set a color to the task header - * @param color {string} The color - * @param {Object} Optional callbacks + * @param color {string} The colorĀ  */ - @Cordova() - static tint(color: string, callbacks?: {success?: Function, failure?: Function}): void { } + @Cordova({ + callbackStyle: 'object', + successName: 'success', + errorName: 'failure' + }) + static tint(color: string): Promise { } -} \ No newline at end of file +}