Create a dependency that is resolved every time it is used.
The factory function.
The dependencies to pass to the factory function.
The dependency. Resolved on use.
A singleton. Create a dependency that is resolved once.
The factory function.
The dependencies to pass to the factory function.
The dependency. Resolved on use.
Record dependency. Create a dependency from a record that has resolvable values. The record can contain promises, dependencies, or plain values.
The type of the record. Generally inferred.
The record to use.
The record dependency.
Resolve a list of dependencies.
Rest
...dependencies: Dependencies<R>A list of dependencies to resolve.
The values of the resolved dependencies.
Create a dependency that wraps a value.
The value to wrap.
The dependency. Resolved on use.
Static
createStatic
newable
Dynasty is a simple Dependency Injection container. This is the primary class for creating and managing dependencies.