* Configures factory. * * @param {Optional } factory Factory. * * @returns {this} Current instance of type metadata.
(factory: Optional<Factory>)
| 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. |