mirror of
https://github.com/streamich/react-use.git
synced 2026-01-18 14:06:52 +00:00
12 lines
288 B
TypeScript
12 lines
288 B
TypeScript
export interface NetworkState {
|
|
online?: boolean;
|
|
since?: Date;
|
|
downlink?: number;
|
|
downlinkMax?: number;
|
|
effectiveType?: string;
|
|
rtt?: number;
|
|
type?: string;
|
|
}
|
|
declare const useNetwork: (initialState?: NetworkState) => NetworkState;
|
|
export default useNetwork;
|