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

Method component

src/monogatari.ts:968–972  ·  view source on GitHub ↗

* @static component - Access to an specific component class * * @param {string} id - ID of the component you want to access to. * * @return {Component} - Returns the component class that matches the ID

(id: string)

Source from the content-addressed store, hash-verified

966 * @return {Component} - Returns the component class that matches the ID
967 */
968 static component (id: string) {
969 const normalizedId = id.toLowerCase ();
970
971 return this.components ().find ((c) => c.tag === normalizedId);
972 }
973
974 /**
975 * @static assets - Simple function to modify and access the assets object,

Callers 7

revertMethod · 0.80
willRollbackMethod · 0.80
applyMethod · 0.80
revertMethod · 0.80
initMethod · 0.80
initMethod · 0.80
setupMethod · 0.80

Calls 1

componentsMethod · 0.95

Tested by

no test coverage detected