docx
Version:
Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.
30 lines (29 loc) • 1.07 kB
TypeScript
import { XmlComponent } from '../../xml-components';
export type TabStopDefinition = {
readonly type: (typeof TabStopType)[keyof typeof TabStopType];
readonly position: number | (typeof TabStopPosition)[keyof typeof TabStopPosition];
readonly leader?: (typeof LeaderType)[keyof typeof LeaderType];
};
export declare const TabStopType: {
readonly LEFT: "left";
readonly RIGHT: "right";
readonly CENTER: "center";
readonly BAR: "bar";
readonly CLEAR: "clear";
readonly DECIMAL: "decimal";
readonly END: "end";
readonly NUM: "num";
readonly START: "start";
};
export declare const LeaderType: {
readonly DOT: "dot";
readonly HYPHEN: "hyphen";
readonly MIDDLE_DOT: "middleDot";
readonly NONE: "none";
readonly UNDERSCORE: "underscore";
};
export declare const TabStopPosition: {
readonly MAX: 9026;
};
export declare const createTabStopItem: ({ type, position, leader }: TabStopDefinition) => XmlComponent;
export declare const createTabStop: (tabDefinitions: readonly TabStopDefinition[]) => XmlComponent;