typeioc

Home > typeioc > IDecoratorRegistration > within

IDecoratorRegistration.within() method

Specifies resolution instance scope. Scope determines how resolved service instances behave in between resolutions

Signature:

within(scope: ScopeType): WithDecoratorRegister<T>;

Parameters

Parameter Type Description
scope ScopeType the value of the scope ScopeType

Returns:

WithDecoratorRegister<T>