mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-04-13 00:00:10 +08:00
Revert "chore(package): bump dependencies and lint rules"
This reverts commit 21ad4734fa.
This commit is contained in:
@@ -1,14 +1,8 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Cordova, CordovaProperty, Plugin, CordovaCheck, IonicNativePlugin } from '@ionic-native/core';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import 'rxjs/add/observable/merge';
|
||||
|
||||
import { Injectable } from '@angular/core';
|
||||
import {
|
||||
Cordova,
|
||||
CordovaCheck,
|
||||
CordovaProperty,
|
||||
IonicNativePlugin,
|
||||
Plugin
|
||||
} from '@ionic-native/core';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
|
||||
declare const navigator: any;
|
||||
|
||||
@@ -63,17 +57,20 @@ declare const navigator: any;
|
||||
})
|
||||
@Injectable()
|
||||
export class Network extends IonicNativePlugin {
|
||||
|
||||
/**
|
||||
* Connection type
|
||||
* @return {string}
|
||||
*/
|
||||
@CordovaProperty type: string;
|
||||
@CordovaProperty
|
||||
type: string;
|
||||
|
||||
/**
|
||||
* Downlink Max Speed
|
||||
* @return {string}
|
||||
*/
|
||||
@CordovaProperty downlinkMax: string;
|
||||
@CordovaProperty
|
||||
downlinkMax: string;
|
||||
|
||||
/**
|
||||
* Returns an observable to watch connection changes
|
||||
@@ -92,9 +89,7 @@ export class Network extends IonicNativePlugin {
|
||||
eventObservable: true,
|
||||
event: 'offline'
|
||||
})
|
||||
onDisconnect(): Observable<any> {
|
||||
return;
|
||||
}
|
||||
onDisconnect(): Observable<any> { return; }
|
||||
|
||||
/**
|
||||
* Get notified when the device goes online
|
||||
@@ -104,7 +99,6 @@ export class Network extends IonicNativePlugin {
|
||||
eventObservable: true,
|
||||
event: 'online'
|
||||
})
|
||||
onConnect(): Observable<any> {
|
||||
return;
|
||||
}
|
||||
onConnect(): Observable<any> { return; }
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user