mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-27 17:50:56 +00:00
11 lines
370 B
TypeScript
11 lines
370 B
TypeScript
export interface UserNetworkReturnValue {
|
|
online: boolean;
|
|
downlink?: number;
|
|
downlinkMax?: number;
|
|
effectiveType?: 'slow-2g' | '2g' | '3g' | '4g';
|
|
rtt?: number;
|
|
saveData?: boolean;
|
|
type?: 'bluetooth' | 'cellular' | 'ethernet' | 'wifi' | 'wimax' | 'none' | 'other' | 'unknown';
|
|
}
|
|
export declare function useNetwork(): UserNetworkReturnValue;
|