@stencila/types
Version:
JavaScript classes and TypeScript types for the Stencila Schema
47 lines (37 loc) • 1.29 kB
text/typescript
// Generated file; do not edit. See https://github.com/stencila/stencila/tree/main/rust/schema-gen
import { CreativeWork } from "./CreativeWork.js";
import { IntegerOrString } from "./IntegerOrString.js";
/**
* A part of a successively published publication such as a periodical or publication volume, often numbered.
*/
export class PublicationIssue extends CreativeWork {
// @ts-expect-error 'not assignable to the same property in base type'
type: "PublicationIssue";
/**
* Identifies the issue of publication; for example, "iii" or "2".
*/
issueNumber?: IntegerOrString;
/**
* The page on which the issue starts; for example "135" or "xiii".
*/
pageStart?: IntegerOrString;
/**
* The page on which the issue ends; for example "138" or "xvi".
*/
pageEnd?: IntegerOrString;
/**
* Any description of pages that is not separated into pageStart and pageEnd; for example, "1-6, 9, 55".
*/
pagination?: string;
constructor(options?: Partial<PublicationIssue>) {
super();
this.type = "PublicationIssue";
if (options) Object.assign(this, options);
}
}
/**
* Create a new `PublicationIssue`
*/
export function publicationIssue(options?: Partial<PublicationIssue>): PublicationIssue {
return new PublicationIssue(options);
}