Add an instance to the resolution tree.
The name of this instance.
(optional) The name of the parents of this instance. Coerced into an array if a single string is provided.
(optional) The name of any optional parents of this instance. Coerced into an array if a single string is provided.
An object or anything really to tie to this instance.
Build the dependency tree.
Clears out all added instances, to allow the resolver to start fresh.
Generated using TypeDoc
DepResolver is a multi-parent dependency resolution algorithm, made to resolve dependencies optimally whilst detecting unresolvable or circular dependencies.