UNPKG

docx

Version:

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

16 lines (15 loc) 811 B
import { IDefaultStylesOptions } from './factory'; import { BaseXmlComponent, ImportedXmlComponent, XmlComponent } from '../xml-components'; import { StyleForCharacter, StyleForParagraph } from './style'; import { ICharacterStyleOptions } from './style/character-style'; import { IParagraphStyleOptions } from './style/paragraph-style'; export type IStylesOptions = { readonly default?: IDefaultStylesOptions; readonly initialStyles?: BaseXmlComponent; readonly paragraphStyles?: readonly IParagraphStyleOptions[]; readonly characterStyles?: readonly ICharacterStyleOptions[]; readonly importedStyles?: readonly (XmlComponent | StyleForParagraph | StyleForCharacter | ImportedXmlComponent)[]; }; export declare class Styles extends XmlComponent { constructor(options: IStylesOptions); }