typeioc

Home > typeioc > IDecorator > provideSelf

IDecorator.provideSelf() method

Sets registration to be marked as self registration

Signature:

provideSelf<R>(): IDecoratorRegistration<R>;

Returns:

IDecoratorRegistration<R>

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