Make the internal hyperlink consistent
This commit is contained in:
@ -95,7 +95,7 @@ describe("InternalHyperlink", () => {
|
||||
describe("#constructor()", () => {
|
||||
it("should create", () => {
|
||||
const internalHyperlink = new InternalHyperlink({
|
||||
child: new TextRun("test"),
|
||||
children: [new TextRun("test")],
|
||||
anchor: "test-id",
|
||||
});
|
||||
|
||||
|
@ -33,8 +33,8 @@ export class ConcreteHyperlink extends XmlComponent {
|
||||
}
|
||||
|
||||
export class InternalHyperlink extends ConcreteHyperlink {
|
||||
constructor(options: { readonly child: ParagraphChild; readonly anchor: string }) {
|
||||
super([options.child], uniqueId(), options.anchor);
|
||||
constructor(options: { readonly children: ParagraphChild[]; readonly anchor: string }) {
|
||||
super(options.children, uniqueId(), options.anchor);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user