UNPKG

docx

Version:

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

26 lines (25 loc) 933 B
import { XmlComponent } from '../../xml-components'; import { ParagraphChild } from '../paragraph'; export declare const HyperlinkType: { readonly INTERNAL: "INTERNAL"; readonly EXTERNAL: "EXTERNAL"; }; export type IInternalHyperlinkOptions = { readonly children: readonly ParagraphChild[]; readonly anchor: string; }; export type IExternalHyperlinkOptions = { readonly children: readonly ParagraphChild[]; readonly link: string; }; 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: IInternalHyperlinkOptions); } export declare class ExternalHyperlink extends XmlComponent { readonly options: IExternalHyperlinkOptions; constructor(options: IExternalHyperlinkOptions); }