fix(background-mode): update types definitions (#2997)

On the last PR https://github.com/ionic-team/ionic-native/pull/2982
there was a little typing problem for the .on event listener call.
This commit is contained in:
Tobias Kausch 2019-04-19 18:58:28 +02:00 committed by Daniel Sogl
parent c518c8114d
commit c0ce17b170

View File

@ -173,8 +173,6 @@ export class BackgroundMode extends IonicNativePlugin {
* Register callback for given event. * Register callback for given event.
* > Available events are `enable`, `disable`, `activate`, `deactivate` and `failure`. * > Available events are `enable`, `disable`, `activate`, `deactivate` and `failure`.
* @param event {string} Event name * @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>} * @returns {Observable<any>}
*/ */
@Cordova({ @Cordova({
@ -182,7 +180,7 @@ export class BackgroundMode extends IonicNativePlugin {
clearFunction: 'un', clearFunction: 'un',
clearWithArgs: true clearWithArgs: true
}) })
on(event: string, callback: (...args: any[]) => void, scope?: object): Observable<any> { on(event: string): Observable<any> {
return; return;
} }