stack-element.d.ts 535 B

123456789101112
  1. import type { Attrs, Node, NodeType } from '@milkdown/prose/model';
  2. import { StackElement } from '../utility';
  3. export declare class ParserStackElement extends StackElement<Node> {
  4. type: NodeType;
  5. content: Node[];
  6. attrs?: Attrs | undefined;
  7. constructor(type: NodeType, content: Node[], attrs?: Attrs | undefined);
  8. push(node: Node, ...rest: Node[]): void;
  9. pop(): Node | undefined;
  10. static create(type: NodeType, content: Node[], attrs?: Attrs): ParserStackElement;
  11. }
  12. //# sourceMappingURL=stack-element.d.ts.map