docx
Version:
Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.
50 lines (49 loc) • 1.31 kB
TypeScript
import { XmlAttributeComponent, XmlComponent } from "../../file/xml-components";
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 interface ISettingsOptions {
readonly compatabilityModeVersion?: number;
readonly evenAndOddHeaders?: boolean;
readonly trackRevisions?: boolean;
readonly updateFields?: boolean;
}
export declare class Settings extends XmlComponent {
constructor(options: ISettingsOptions);
}