source: imaps-frontend/node_modules/react-use/lib/useBattery.d.ts

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 
1export interface BatteryState {
2 charging: boolean;
3 chargingTime: number;
4 dischargingTime: number;
5 level: number;
6}
7declare type UseBatteryState = {
8 isSupported: false;
9} | {
10 isSupported: true;
11 fetched: false;
12} | (BatteryState & {
13 isSupported: true;
14 fetched: true;
15});
16declare function useBattery(): UseBatteryState;
17declare const _default: typeof useBattery;
18export default _default;
Note: See TracBrowser for help on using the repository browser.