mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-01 02:53:03 +08:00
bug(doc): battery-status example fix
Fix for https://github.com/driftyco/ionic-native/issues/1383
This commit is contained in:
parent
4bd6aaba2b
commit
f7044a08de
@ -32,7 +32,7 @@ export interface BatteryStatusResponse {
|
|||||||
*
|
*
|
||||||
* // watch change in battery status
|
* // watch change in battery status
|
||||||
* let subscription = this.batteryStatus.onChange().subscribe(
|
* let subscription = this.batteryStatus.onChange().subscribe(
|
||||||
* (status: StatusObject) => {
|
* (status: BatteryStatusResponse) => {
|
||||||
* console.log(status.level, status.isPlugged);
|
* console.log(status.level, status.isPlugged);
|
||||||
* }
|
* }
|
||||||
* );
|
* );
|
||||||
|
Loading…
Reference in New Issue
Block a user