UNPKG

docx

Version:

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

27 lines (26 loc) 870 B
import { XmlComponent } from '../../xml-components'; import { ParagraphChild } from "../paragraph"; export declare enum HyperlinkType { INTERNAL = "INTERNAL", EXTERNAL = "EXTERNAL" } export declare class ConcreteHyperlink extends XmlComponent { readonly linkId: string; constructor(children: readonly ParagraphChild[], relationshipId: string, anchor?: string); } export declare class InternalHyperlink extends ConcreteHyperlink { constructor(options: { readonly children: readonly ParagraphChild[]; readonly anchor: string; }); } export declare class ExternalHyperlink extends XmlComponent { readonly options: { readonly children: readonly ParagraphChild[]; readonly link: string; }; constructor(options: { readonly children: readonly ParagraphChild[]; readonly link: string; }); }