main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
421 bytes
|
Line | |
---|
1 | export interface BatteryState {
|
---|
2 | charging: boolean;
|
---|
3 | chargingTime: number;
|
---|
4 | dischargingTime: number;
|
---|
5 | level: number;
|
---|
6 | }
|
---|
7 | declare type UseBatteryState = {
|
---|
8 | isSupported: false;
|
---|
9 | } | {
|
---|
10 | isSupported: true;
|
---|
11 | fetched: false;
|
---|
12 | } | (BatteryState & {
|
---|
13 | isSupported: true;
|
---|
14 | fetched: true;
|
---|
15 | });
|
---|
16 | declare function useBattery(): UseBatteryState;
|
---|
17 | declare const _default: typeof useBattery;
|
---|
18 | export default _default;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.