diff --git a/src/file/numbering/level.ts b/src/file/numbering/level.ts index 93fcbe6f67..d35c742c16 100644 --- a/src/file/numbering/level.ts +++ b/src/file/numbering/level.ts @@ -2,7 +2,7 @@ import { decimalNumber } from "file/values"; import { Attributes, NumberValueElement, XmlAttributeComponent, XmlComponent } from "file/xml-components"; import { AlignmentType } from "../paragraph/formatting"; -import { IParagraphStylePropertiesOptions, ParagraphProperties } from "../paragraph/properties"; +import { ILevelParagraphStylePropertiesOptions, ParagraphProperties } from "../paragraph/properties"; import { IRunStylePropertiesOptions, RunProperties } from "../paragraph/run/properties"; export enum LevelFormat { @@ -88,7 +88,7 @@ export interface ILevelsOptions { readonly suffix?: LevelSuffix; readonly style?: { readonly run?: IRunStylePropertiesOptions; - readonly paragraph?: IParagraphStylePropertiesOptions; + readonly paragraph?: ILevelParagraphStylePropertiesOptions; }; } diff --git a/src/file/paragraph/properties.ts b/src/file/paragraph/properties.ts index 6a2537f839..bb055bc893 100644 --- a/src/file/paragraph/properties.ts +++ b/src/file/paragraph/properties.ts @@ -13,7 +13,7 @@ import { NumberProperties } from "./formatting/unordered-list"; import { FrameProperties, IFrameOptions } from "./frame/frame-properties"; import { OutlineLevel } from "./links"; -export interface IParagraphStylePropertiesOptions { +export interface ILevelParagraphStylePropertiesOptions { readonly alignment?: AlignmentType; readonly thematicBreak?: boolean; readonly contextualSpacing?: boolean; @@ -24,6 +24,9 @@ export interface IParagraphStylePropertiesOptions { readonly keepNext?: boolean; readonly keepLines?: boolean; readonly outlineLevel?: number; +} + +export interface IParagraphStylePropertiesOptions extends ILevelParagraphStylePropertiesOptions { readonly numbering?: { readonly reference: string; readonly level: number;