typeioc

Home > typeioc > IRegistration > as

IRegistration.as() method

Sets registration to be marked as factory registration

Signature:

as(factory: Factory<T>): IRegisterWithAs<T>;

Parameters

Parameter Type Description
factory Factory<T> an instance of Factory interface

Returns:

IRegisterWithAs<T>

Remarks

Registration is provided as a factory method