typeioc

Home > typeioc > IDecoratorRegistration > named

IDecoratorRegistration.named() method

Specifies named registration. Registration can be resolved only using the name provided

Signature:

named(name: string): WithDecoratorRegisterName<T>;

Parameters

Parameter Type Description
name string a value that should be used during service resolution If parameter value is null or undefined ArgumentError is thrown

Returns:

WithDecoratorRegisterName<T>