UNPKG

docx

Version:

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

60 lines (59 loc) 1.7 kB
import { XmlAttributeComponent, XmlComponent } from '../xml-components'; import { ICompatibilityOptions } from './compatibility'; export declare class SettingsAttributes extends XmlAttributeComponent<{ readonly wpc?: string; readonly mc?: string; readonly o?: string; readonly r?: string; readonly m?: string; readonly v?: string; readonly wp14?: string; readonly wp?: string; readonly w10?: string; readonly w?: string; readonly w14?: string; readonly w15?: string; readonly wpg?: string; readonly wpi?: string; readonly wne?: string; readonly wps?: string; readonly Ignorable?: string; }> { protected readonly xmlKeys: { wpc: string; mc: string; o: string; r: string; m: string; v: string; wp14: string; wp: string; w10: string; w: string; w14: string; w15: string; wpg: string; wpi: string; wne: string; wps: string; Ignorable: string; }; } export type ISettingsOptions = { readonly compatibilityModeVersion?: number; readonly evenAndOddHeaders?: boolean; readonly trackRevisions?: boolean; readonly updateFields?: boolean; readonly compatibility?: ICompatibilityOptions; readonly defaultTabStop?: number; readonly hyphenation?: IHyphenationOptions; }; export type IHyphenationOptions = { readonly autoHyphenation?: boolean; readonly hyphenationZone?: number; readonly consecutiveHyphenLimit?: number; readonly doNotHyphenateCaps?: boolean; }; export declare class Settings extends XmlComponent { constructor(options: ISettingsOptions); }