import Extension from './Extension' import { NodeSpec } from 'prosemirror-model' export default abstract class Node extends Extension { constructor(options = {}) { super(options) } public type = 'node' public topNode = false abstract schema(): NodeSpec get schemaType() { return this.editor.schema.nodes[this.name] } }