UNPKG

docx

Version:

Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.

25 lines (24 loc) 832 B
import { NumberFormat } from '../../../../shared/number-format'; import { XmlAttributeComponent, XmlComponent } from '../../../../xml-components'; export declare enum PageNumberSeparator { HYPHEN = "hyphen", PERIOD = "period", COLON = "colon", EM_DASH = "emDash", EN_DASH = "endash" } export interface IPageNumberTypeAttributes { readonly start?: number; readonly formatType?: NumberFormat; readonly separator?: PageNumberSeparator; } export declare class PageNumberTypeAttributes extends XmlAttributeComponent<IPageNumberTypeAttributes> { protected readonly xmlKeys: { start: string; formatType: string; separator: string; }; } export declare class PageNumberType extends XmlComponent { constructor({ start, formatType, separator }: IPageNumberTypeAttributes); }