MCPcopy Create free account
hub / github.com/Monogatari/Monogatari / instances

Method instances

src/lib/Component.ts:271–276  ·  view source on GitHub ↗

* Get all instances of this component, optionally iterating with callback

(callback: ((instance: any) => void) | null = null)

Source from the content-addressed store, hash-verified

269 * Get all instances of this component, optionally iterating with callback
270 */
271 static instances (callback: ((instance: any) => void) | null = null): ReturnType<typeof $_> {
272 if (typeof callback === 'function') {
273 return $_(this.tag).each(callback as any);
274 }
275 return $_(this.tag);
276 }
277
278 // =========================================
279 // Instance Methods

Callers 14

shouldProceedMethod · 0.95
willProceedMethod · 0.95
shouldRollbackMethod · 0.95
willRollbackMethod · 0.95
onResetMethod · 0.95
revertMethod · 0.45
willRollbackMethod · 0.45
applyMethod · 0.45
revertMethod · 0.45
applyMethod · 0.45
bindMethod · 0.45
initMethod · 0.45

Calls 1

eachMethod · 0.65

Tested by

no test coverage detected