2024-06-15 00:55:43 +03:00

6 lines
211 B
TypeScript

/**
* Assumes a browser is online if `undefined`, otherwise makes a best effort
* @link https://developer.mozilla.org/en-US/docs/Web/API/NavigatorOnLine/onLine
*/
export declare function isOnline(): boolean;