MCPcopy Index your code
hub / github.com/simstudioai/sim / findRelByType

Function findRelByType

apps/sim/lib/pptx-renderer/model/presentation.ts:66–73  ·  view source on GitHub ↗

* Find a rels entry by type substring match.

(rels: Map<string, RelEntry>, typeSubstring: string)

Source from the content-addressed store, hash-verified

64 * Find a rels entry by type substring match.
65 */
66function findRelByType(rels: Map<string, RelEntry>, typeSubstring: string): RelEntry | undefined {
67 for (const [, entry] of rels) {
68 if (entry.type.includes(typeSubstring)) {
69 return entry
70 }
71 }
72 return undefined
73}
74
75/**
76 * Find ALL rels entries matching a type substring, returning [rId, entry] pairs.

Callers 1

buildPresentationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected