@stencila/types
Version:
JavaScript classes and TypeScript types for the Stencila Schema
26 lines (20 loc) • 653 B
text/typescript
// Generated file; do not edit. See https://github.com/stencila/stencila/tree/main/rust/schema-gen
import { Entity } from "./Entity.js";
/**
* Abstract base type for nodes that indicate a suggested change to content.
*/
export class Suggestion extends Entity {
// @ts-expect-error 'not assignable to the same property in base type'
type: "Suggestion";
constructor(options?: Partial<Suggestion>) {
super();
this.type = "Suggestion";
if (options) Object.assign(this, options);
}
}
/**
* Create a new `Suggestion`
*/
export function suggestion(options?: Partial<Suggestion>): Suggestion {
return new Suggestion(options);
}