class Relationships
extends XmlFile
import { Relationships } from "https://deno.land/x/docxml@1.4.0/src/bundle/Relationships.ts";
Constructors
Methods
protected
toNode(): Documentadd(type: RelationshipType, instance: XmlFile)
ensureRelationship<C extends XmlFile>(type: RelationshipType, createInstance: () => C): C
find<R extends XmlFile = XmlFile>(cb: (meta: RelationshipMeta) => boolean): R | null
Find a relationship instance (eg. a OfficeDocument) by its metadata. The metadata would tell you what type of relationship it is.
Static Methods
fromArchive(archive: ZipArchive, location: string): Promise<Relationships>
Instantiate this class by looking at the DOCX XML for it.