@allmaps/annotation
Version:
Functions for generating and parsing IIIF georeference annotations
14 lines (13 loc) • 521 B
TypeScript
export declare function isGeoreferencedMapsBeforeParse(mapOrMaps: unknown): mapOrMaps is Array<unknown>;
export declare function isAnnotationPageBeforeParse(annotation: unknown): annotation is {
type: 'AnnotationPage';
items: unknown[];
};
export declare function isGeoreferencedMap2BeforeParse(georeferencedMap: unknown): georeferencedMap is {
type: 'GeoreferencedMap';
};
export declare function isAnnotation0BeforeParse(annotation: unknown): annotation is {
target: {
source: string;
};
};