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 +}