@mantine/hooks
Version:
A collection of 50+ hooks for state and UI management
11 lines (10 loc) • 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;