cozy-iiif
Version:
A developer-friendly collection of abstractions and utilities built on top of @iiif/presentation-3 and @iiif/parser
4 lines (3 loc) • 305 B
TypeScript
import type { Annotation } from '@iiif/presentation-3';
import type { CozyCanvas, CozyManifest } from '../types';
export declare const importAnnotations: <T extends CozyManifest | CozyCanvas>(resource: T, annotations: Annotation[], namespace?: string) => T extends CozyCanvas ? CozyCanvas : CozyManifest;