MCPcopy
hub / github.com/ocsjs/ocsjs / $msg_and_log

Function $msg_and_log

packages/scripts/src/projects/icourse.ts:12–15  ·  view source on GitHub ↗
(type: 'info' | 'warn' | 'error', msg: string)

Source from the content-addressed store, hash-verified

10import { $render } from '../utils/render';
11
12const $msg_and_log = (type: 'info' | 'warn' | 'error', msg: string) => {
13 $message[type](msg);
14 $console[type](msg);
15};
16
17const state = {
18 currentMedia: undefined as HTMLMediaElement | undefined,

Callers 7

handleVideoTestFunction · 0.70
studyFunction · 0.70
startFunction · 0.70
workAndExamFunction · 0.70
callbackFunction · 0.70
readPPTFunction · 0.70
discussionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected