(id: string)
| 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); |