MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / parse

Function parse

ui/src/lib/adapter.ts:468–476  ·  view source on GitHub ↗
(event: Event)

Source from the content-addressed store, hash-verified

466}
467
468function parse(event: Event): unknown {
469 const data = (event as MessageEvent<string>).data;
470 if (typeof data !== 'string') return null;
471 try {
472 return JSON.parse(data) as unknown;
473 } catch {
474 return null;
475 }
476}
477
478/* ------------------------------------------------------------- registry -- */
479

Callers 1

eventsFunction · 0.70

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected