@stencila/types
Version:
JavaScript classes and TypeScript types for the Stencila Schema
42 lines (33 loc) • 952 B
text/typescript
// Generated file; do not edit. See https://github.com/stencila/stencila/tree/main/rust/schema-gen
import { CreativeWork } from "./CreativeWork.js";
import { Date } from "./Date.js";
/**
* A periodical publication.
*/
export class Periodical extends CreativeWork {
// @ts-expect-error 'not assignable to the same property in base type'
type: "Periodical";
/**
* The date this Periodical was first published.
*/
dateStart?: Date;
/**
* The date this Periodical ceased publication.
*/
dateEnd?: Date;
/**
* The International Standard Serial Number(s) (ISSN) that identifies this serial publication.
*/
issns?: string[];
constructor(options?: Partial<Periodical>) {
super();
this.type = "Periodical";
if (options) Object.assign(this, options);
}
}
/**
* Create a new `Periodical`
*/
export function periodical(options?: Partial<Periodical>): Periodical {
return new Periodical(options);
}