forgeplus-react/node_modules/ahooks/lib/useNetwork/index.d.ts

13 lines
284 B
TypeScript

export interface NetworkState {
since?: Date;
online?: boolean;
rtt?: number;
type?: string;
downlink?: number;
saveData?: boolean;
downlinkMax?: number;
effectiveType?: string;
}
declare function useNetwork(): NetworkState;
export default useNetwork;