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) • 434 B
TypeScript
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?: (typeof TargetModeType)[keyof typeof TargetModeType]) => readonly Element[];