Const
A special token used to resolve the entire container as a dependency. This can be utilized when a service needs access to the container itself, allowing for dynamic retrieval of other services.
const initial = Container.providesValue("value", 1);const extended = initial.provides( Injectable("service", [CONTAINER], (container: typeof initial) => { return container.get("value") + 1; }));const result = extended.get("service"); // 2 Copy
const initial = Container.providesValue("value", 1);const extended = initial.provides( Injectable("service", [CONTAINER], (container: typeof initial) => { return container.get("value") + 1; }));const result = extended.get("service"); // 2
A special token used to resolve the entire container as a dependency. This can be utilized when a service needs access to the container itself, allowing for dynamic retrieval of other services.