UNPKG

webdev-power-kit

Version:

A powerful toolkit that simplifies access to browser features like clipboard, notifications, battery, vibration, and more — perfect for modern web developers.

11 lines (10 loc) 371 B
/** * Checks if the browser is currently online. * @returns {boolean} True if online, false if offline. */ export declare function isOnline(): boolean; /** * Listen for changes in network status (online/offline). * @param callback - A function that receives the current status. */ export declare function onNetworkChange(callback: (online: boolean) => void): void;