@readium/shared
Version:
Shared models to be used across other Readium projects and implementations in Typescript
19 lines (15 loc) • 569 B
text/typescript
import { Properties } from '../Properties';
// EPUB extensions for link [Properties].
// https://readium.org/webpub-manifest/schema/extensions/epub/properties.schema.json
declare module '../Properties' {
export interface Properties {
/**
* Identifies content contained in the linked resource, that cannot be strictly identified using a
* media type.
*/
getContains(): Set<string> | undefined;
}
}
Properties.prototype.getContains = function(): Set<string> | undefined {
return new Set<string>(this.otherProperties['contains'] || []);
};