UNPKG

docx

Version:

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

5 lines (4 loc) 396 B
import { Element } from "xml-js"; import { RelationshipType, TargetModeType } from '../file/relationships/relationship/relationship'; export declare const getNextRelationshipIndex: (relationships: Element) => number; export declare const appendRelationship: (relationships: Element, id: number | string, type: RelationshipType, target: string, targetMode?: TargetModeType) => readonly Element[];