fix(headercolor): solve typo in usage and chore

This commit is contained in:
John-Luke 2016-11-24 14:37:57 -03:00
parent 93696d53f7
commit bab2971c58

View File

@ -9,13 +9,7 @@ import { Plugin, Cordova } from './plugin';
* ```typescript * ```typescript
* import { HeaderColor } from 'ionic-native'; * import { HeaderColor } from 'ionic-native';
* *
* HeaderColor.tint("#becb29").then( * HeaderColor.tint("#becb29");
* (success) => {
* console.log("Your header have a color now")
* },
* (error) => {
* console.log("Your header not have a color now")
* }
* ``` * ```
*/ */
@Plugin({ @Plugin({
@ -30,9 +24,9 @@ export class HeaderColor {
/** /**
* Set a color to the task header * Set a color to the task header
* @param color {string} The color * @param color {string} The color
* @return {Promise<any>} * @param {Object} Optional callbacks
*/ */
@Cordova() @Cordova()
static tint(color: string): Promise<any> { return; } static tint(color: string, callbacks?: {success?: Function, failure?: Function}): void { }
} }