cozy-iiif
Version:
A developer-friendly collection of abstractions and utilities built on top of @iiif/presentation-3 and @iiif/parser
7 lines (6 loc) • 503 B
TypeScript
import type { InternationalString } from '@iiif/presentation-3';
import type { CozyMetadata } from '../types';
export declare const getPropertyValue: <T extends unknown = any>(data: any, name: string) => T;
export declare const getStringValue: (propertyValue: string | InternationalString, locale?: string) => string | undefined;
export declare const getLabel: (data: any) => (locale?: string) => string | undefined;
export declare const getMetadata: (data: any) => (locale?: string) => CozyMetadata[];