Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/docxml/src/bundle/Relationships.ts>Relationships#find

An experimental Deno tool to transform XML to DOCX with a little XPath- and component based configuration
Go to Latest
method Relationships.prototype.find
import { Relationships } from "https://deno.land/x/docxml@1.3.1/src/bundle/Relationships.ts";

Find a relationship instance (eg. a OfficeDocument) by its metadata. The metadata would tell you what type of relationship it is.

Type Parameters

optional
R extends XmlFile = XmlFile

Parameters

cb: (meta: RelationshipMeta) => boolean

Returns

R | null