UNPKG

@readium/shared

Version:

Shared models to be used across other Readium projects and implementations in Typescript

15 lines (11 loc) 336 B
import { Links } from '../Link'; import { Publication } from '../Publication'; // OPDS extensions for [Publication] declare module '../Publication' { export interface Publication { getImages(): Links | undefined; } } Publication.prototype.getImages = function(): Links | undefined { return this.linksWithRole('images'); };