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) 821 B
import { XmlComponent } from "../../../file/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: ParagraphChild[], relationshipId: string, anchor?: string); } export declare class InternalHyperlink extends ConcreteHyperlink { constructor(options: { readonly children: ParagraphChild[]; readonly anchor: string; }); } export declare class ExternalHyperlink { readonly options: { readonly children: ParagraphChild[]; readonly link: string; }; constructor(options: { readonly children: ParagraphChild[]; readonly link: string; }); }