docx
Version:
Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.
12 lines (11 loc) • 501 B
TypeScript
import { XmlComponent } from '../xml-components';
import { Percentage, UniversalMeasure } from '../../util/values';
export declare const CellSpacingType: {
readonly DXA: "dxa";
readonly NIL: "nil";
};
export type ITableCellSpacingProperties = {
readonly value: number | Percentage | UniversalMeasure;
readonly type?: (typeof CellSpacingType)[keyof typeof CellSpacingType];
};
export declare const createTableCellSpacing: ({ type, value }: ITableCellSpacingProperties) => XmlComponent;