typeioc

Home > typeioc > IRegistration > asSelf

IRegistration.asSelf() method

Sets registration to be marked as self registration

Signature:

asSelf(...params: any[]): IRegisterWithAs<T>;

Parameters

Parameter Type Description
params any[] optional array of parameters to be used for the type

Returns:

IRegisterWithAs<T>

Remarks

Registration is provided as a type itself (participates both in registration and resolution). It is intended for construct-able types only. Uses new operator for type construction