Home > typeioc > IRegistration > asSelf
Sets registration to be marked as self registration
Signature:
asSelf(...params: any[]): IRegisterWithAs<T>;
Parameter | Type | Description |
---|---|---|
params | any[] |
optional array of parameters to be used for the type |
Returns:
IRegisterWithAs<T>
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