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

Method global

src/monogatari.ts:1409–1415  ·  view source on GitHub ↗
(key: string, value?: unknown)

Source from the content-addressed store, hash-verified

1407 static global<K extends keyof GlobalsMap>(key: K): GlobalsMap[K];
1408 static global<K extends keyof GlobalsMap>(key: K, value: GlobalsMap[K]): GlobalsMap[K];
1409 static global (key: string, value?: unknown): unknown {
1410 if (typeof value !== 'undefined') {
1411 this._globals[key] = value;
1412 }
1413
1414 return this._globals?.[key] ?? undefined;
1415 }
1416
1417 static template (key: string, value?: unknown): unknown {
1418 if (typeof value !== 'undefined') {

Callers 15

onLoadMethod · 0.95
registerComponentMethod · 0.95
unregisterComponentMethod · 0.95
setupMethod · 0.95
bindMethod · 0.95
initMethod · 0.95
setupMethod · 0.80
applyMethod · 0.80
didApplyMethod · 0.80
restoreSceneItemsMethod · 0.80
revertMethod · 0.80
revertMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected