MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / collectCompositionIds

Function collectCompositionIds

packages/lint/src/utils.ts:160–167  ·  view source on GitHub ↗
(tags: OpenTag[])

Source from the content-addressed store, hash-verified

158}
159
160export function collectCompositionIds(tags: OpenTag[]): Set<string> {
161 const ids = new Set<string>();
162 for (const tag of tags) {
163 const compId = readAttr(tag.raw, "data-composition-id");
164 if (compId) ids.add(compId);
165 }
166 return ids;
167}
168
169export function extractCompositionIdsFromCss(css: string): string[] {
170 const ids = new Set<string>();

Callers 1

buildLintContextFunction · 0.90

Calls 2

readAttrFunction · 0.85
addMethod · 0.80

Tested by

no test coverage detected