MCPcopy Create free account
hub / github.com/annotorious/annotorious / getAnnotation

Function getAnnotation

packages/annotorious-core/src/state/Store.ts:294–297  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

292 }
293
294 const getAnnotation = (id: string): T | undefined => {
295 const a = annotationIndex.get(id);
296 return a ? {...a} : undefined;
297 }
298
299 const getBody = (id: string): T['bodies'][number] | undefined => {
300 const annotationId = bodyIndex.get(id);

Callers 1

getBodyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected