Skip to content

Commit

Permalink
fix(background-mode): update types definitions (#2997)
Browse files Browse the repository at this point in the history
On the last PR #2982
there was a little typing problem for the .on event listener call.
  • Loading branch information
tobika authored and danielsogl committed Apr 19, 2019
1 parent c518c81 commit c0ce17b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/@ionic-native/plugins/background-mode/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,16 +173,14 @@ export class BackgroundMode extends IonicNativePlugin {
* Register callback for given event.
* > Available events are `enable`, `disable`, `activate`, `deactivate` and `failure`.
* @param event {string} Event name
* @param callback {function} The function to be exec as callback.
* @param scope {object} The callback function's scope.
* @returns {Observable<any>}
*/
@Cordova({
observable: true,
clearFunction: 'un',
clearWithArgs: true
})
on(event: string, callback: (...args: any[]) => void, scope?: object): Observable<any> {
on(event: string): Observable<any> {
return;
}

Expand Down

0 comments on commit c0ce17b

Please sign in to comment.