The containing instance, used to help resolve circular dependencies.
The class to resolve.
Optionalname: stringThe name qualifier of the class to resolve.
Injects the value associated with the given token,
or undefined if the token is not registered in the container.
Compared to optional, optionalBy accepts a thisArg argument
(e.g., the containing class instance) which is used to resolve circular dependencies.
Injects the instance associated with the given class, or
undefinedif the class is not registered in the container.Compared to optional,
optionalByaccepts athisArgargument (e.g., the containing class instance) which is used to resolve circular dependencies.