serwist
Version:
A Swiss Army knife for service workers.
24 lines • 774 B
TypeScript
declare global {
interface WorkerGlobalScope {
__WB_DISABLE_DEV_LOGS: boolean;
}
interface Window {
__WB_DISABLE_DEV_LOGS: boolean;
}
}
/**
* The logger used by Serwist inside of both service workers and the window global scope.
*
* Note: This is forcibly `null` in production mode to reduce bundle size. Do check whether
* you are currently in development mode (by using `process.env.NODE_ENV !== "production"`)
* before using it.
*/
export declare const logger: {
error: (...args: any[]) => void;
debug: (...args: any[]) => void;
log: (...args: any[]) => void;
warn: (...args: any[]) => void;
groupCollapsed: (...args: any[]) => void;
groupEnd: (...args: any[]) => void;
};
//# sourceMappingURL=logger.d.ts.map