Allow other types in bookmarks

This commit is contained in:
Rowan Cockett
2021-09-01 12:20:54 -06:00
parent 8c0ff0422a
commit dc2f9c3bdc

View File

@ -2,15 +2,15 @@
import { uniqueId } from "convenience-functions";
import { XmlComponent } from "file/xml-components";
import { TextRun } from "../run";
import { ParagraphChild } from "../paragraph";
import { BookmarkEndAttributes, BookmarkStartAttributes } from "./bookmark-attributes";
export class Bookmark {
public readonly start: BookmarkStart;
public readonly children: TextRun[];
public readonly children: ParagraphChild[];
public readonly end: BookmarkEnd;
constructor(options: { readonly id: string; readonly children: TextRun[] }) {
constructor(options: { readonly id: string; readonly children: ParagraphChild[] }) {
const linkId = uniqueId();
this.start = new BookmarkStart(options.id, linkId);