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

Method constructor

src/type-manager.ts:165–176  ·  view source on GitHub ↗

* Constructor. * * Creating an instance of type manager allows to have multiple configs. By default only static * instance of type manager is created on the background and all decorator based and declarative based * configurations are applied to it. Note that all options which

(typeManagerOptions: TypeManagerOptions = {})

Source from the content-addressed store, hash-verified

163 * @param {TypeManagerOptions} typeManagerOptions Type manager options.
164 */
165 public constructor(typeManagerOptions: TypeManagerOptions = {})
166 {
167 this.symbol = Symbol(TYPE_METADATA_SYMBOL.description);
168 this.typeManagerOptions = this.constructTypeManagerOptions(typeManagerOptions);
169 this.typeFnMap = new Map<Alias, TypeFn<any>>();
170 this.typeMetadataSet = new Set<TypeMetadata<any>>();
171
172 this.register();
173 this.configure(typeManagerOptions);
174
175 return;
176 }
177
178 /**
179 * Gets symbol in static context.

Callers

nothing calls this directly

Calls 3

registerMethod · 0.95
configureMethod · 0.95

Tested by

no test coverage detected