@readium/shared
Version:
Shared models to be used across other Readium projects and implementations in Typescript
24 lines (23 loc) • 694 B
TypeScript
import { Contributors as Collection } from './Contributor';
/**
* BelongsTo Object for the Readium Web Publication Manifest.
* https://readium.org/webpub-manifest/schema/contributor-object.schema.json
*/
export declare class BelongsTo {
/**
* Map of [BelongsTo] items.
*/
readonly items: Map<string, Collection>;
/** Creates an Array of [Subject]. */
constructor(values?: {
items?: Map<string, Collection>;
});
/**
* Parses a [BelongsTo] from its RWPM JSON representation.
*/
static deserialize(json: any): BelongsTo | undefined;
/**
* Serializes a [BelongsTo] to its RWPM JSON representation.
*/
serialize(): any;
}