Skip to content

Commit 76e7f40

Browse files
authored
Merge pull request #1131 from curvenote/fix/bookmark-types
Allow any `ParagraphChild` in `Bookmark`s
2 parents 8eb5d62 + dc2f9c3 commit 76e7f40

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/file/paragraph/links/bookmark.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
import { uniqueId } from "convenience-functions";
33
import { XmlComponent } from "file/xml-components";
44

5-
import { TextRun } from "../run";
5+
import { ParagraphChild } from "../paragraph";
66
import { BookmarkEndAttributes, BookmarkStartAttributes } from "./bookmark-attributes";
77

88
export class Bookmark {
99
public readonly start: BookmarkStart;
10-
public readonly children: TextRun[];
10+
public readonly children: ParagraphChild[];
1111
public readonly end: BookmarkEnd;
1212

13-
constructor(options: { readonly id: string; readonly children: TextRun[] }) {
13+
constructor(options: { readonly id: string; readonly children: ParagraphChild[] }) {
1414
const linkId = uniqueId();
1515

1616
this.start = new BookmarkStart(options.id, linkId);

0 commit comments

Comments
 (0)