Add strict types for file child

This commit is contained in:
Dolan Miu
2023-01-23 14:14:05 +00:00
parent cee0114f81
commit 21a6767c6f
5 changed files with 14 additions and 10 deletions

View File

@ -1,7 +1,8 @@
// http://officeopenxml.com/WPparagraph.php
import { FootnoteReferenceRun } from "@file/footnotes";
import { IContext, IXmlableObject, XmlComponent } from "@file/xml-components";
import { IContext, IXmlableObject } from "@file/xml-components";
import { uniqueId } from "@util/convenience-functions";
import { FileChild } from "@file/file-child";
import { TargetModeType } from "../relationships/relationship/relationship";
import { DeletedTextRun, InsertedTextRun } from "../track-revision";
@ -39,7 +40,7 @@ export interface IParagraphOptions extends IParagraphPropertiesOptions {
readonly children?: readonly ParagraphChild[];
}
export class Paragraph extends XmlComponent {
export class Paragraph extends FileChild {
private readonly properties: ParagraphProperties;
public constructor(options: string | IParagraphOptions) {