dependency-graph
dependency-graph copied to clipboard
Explicitly support using any types as names
Added a generic type K to DepGraph
to constrain the type of name. This is useful in DI frameworks for handling dependencies between classes. Setting K = string
is for backward compatibility. Although currently setting K = any
will not cause any breaking changes, I suggest changing it toany
in future major versions to align with the types of Map/Set
.