UNPKG

docx

Version:

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

17 lines (16 loc) 644 B
import { XmlComponent } from '../../xml-components'; export declare const LineRuleType: { readonly AT_LEAST: "atLeast"; readonly EXACTLY: "exactly"; readonly EXACT: "exact"; readonly AUTO: "auto"; }; export type ISpacingProperties = { readonly after?: number; readonly before?: number; readonly line?: number; readonly lineRule?: (typeof LineRuleType)[keyof typeof LineRuleType]; readonly beforeAutoSpacing?: boolean; readonly afterAutoSpacing?: boolean; }; export declare const createSpacing: ({ after, before, line, lineRule, beforeAutoSpacing, afterAutoSpacing }: ISpacingProperties) => XmlComponent;