MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / referencesOf

Function referencesOf

scripts/fungrim/gen-reference-doc.ts:266–272  ·  view source on GitHub ↗
(e: Entry)

Source from the content-addressed store, hash-verified

264}
265
266function referencesOf(e: Entry): string[] {
267 const r = e.references;
268 if (!r) return [];
269 if (Array.isArray(r)) return r.filter((x): x is string => typeof x === 'string');
270 if (typeof r === 'string') return [r];
271 return [];
272}
273
274const isHexId = (id: string) => /^[0-9a-f]{6}$/.test(id);
275const slugify = (s: string) =>

Callers 1

renderEntryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected