MCPcopy Create free account
hub / github.com/dipscope/TypeManager.TS / register

Method register

src/type-manager.ts:301–310  ·  view source on GitHub ↗

* Registers a new instance of type manager. Basically sets the global state to the * static type manager if not yet done. * * @returns {void} Nothing.

()

Source from the content-addressed store, hash-verified

299 * @returns {void} Nothing.
300 */
301 private register(): void
302 {
303 if (TYPE_MANAGER_STATE.staticSymbol === TYPE_METADATA_SYMBOL)
304 {
305 TYPE_MANAGER_STATE.staticSymbol = this.symbol;
306 TYPE_MANAGER_STATE.activeSymbol = this.symbol;
307 }
308
309 return;
310 }
311
312 /**
313 * Executes a function within a current type manager scope.

Callers 1

constructorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected