MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / getFirstSubcomponent

Method getFirstSubcomponent

tests/__mocks__/ical.ts:146–149  ·  view source on GitHub ↗
(type: string)

Source from the content-addressed store, hash-verified

144 }
145
146 getFirstSubcomponent(type: string): Component | null {
147 const components = this.components.get(type);
148 return components && components.length > 0 ? components[0] : null;
149 }
150
151 getAllSubcomponents(type: string): Component[] {
152 return this.components.get(type) || [];

Callers 1

test-issue-854.tsFile · 0.80

Calls 1

getMethod · 0.65

Tested by

no test coverage detected