MCPcopy
hub / github.com/vercel/hyper / notify

Function notify

lib/utils/notify.ts:2–8  ·  view source on GitHub ↗
(title: string, body: string, details: {error?: any} = {})

Source from the content-addressed store, hash-verified

1/* eslint no-new:0 */
2export default function notify(title: string, body: string, details: {error?: any} = {}) {
3 console.log(`[Notification] ${title}: ${body}`);
4 if (details.error) {
5 console.error(details.error);
6 }
7 new Notification(title, {body});
8}

Callers 8

DecoratedComponentClass · 0.70
getDecoratedFunction · 0.70
componentDidCatchMethod · 0.70
loadModulesFunction · 0.70
getPropsFunction · 0.70
connectFunction · 0.70
decorateReducerFunction · 0.70
effectFunction · 0.50

Calls 2

logMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected