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

Method hasFactory

src/type-metadata.ts:1332–1338  ·  view source on GitHub ↗

* Configures factory. * * @param {Optional } factory Factory. * * @returns {this} Current instance of type metadata.

(factory: Optional<Factory>)

Source from the content-addressed store, hash-verified

1330 * @returns {this} Current instance of type metadata.
1331 */
1332 public hasFactory(factory: Optional<Factory>): this
1333 {
1334 this.typeOptions.factory = factory;
1335 this.currentTypeState = new UnresolvedTypeState<TObject>(this);
1336
1337 return this;
1338 }
1339
1340 /**
1341 * Configures injectable.

Callers 1

configureMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected