UNPKG

@typed/test

Version:
14 lines 504 B
const headers = { 'Content-Type': 'application/json' }; export function log(msg) { console.log(msg); return fetch(`/log`, { method: 'POST', headers, body: JSON.stringify({ msg }) }).then(() => void 0); } export function error(msg) { console.error(msg); return fetch(`/error`, { method: 'POST', headers, body: JSON.stringify({ msg }) }).then(() => void 0); } export function clear() { console.clear(); return fetch(`/clear`).then(() => void 0); } //# sourceMappingURL=logger.js.map