dependency-graph icon indicating copy to clipboard operation
dependency-graph copied to clipboard

Explicitly support using any types as names

Open houyonglu opened this issue 1 year ago • 1 comments

houyonglu avatar Jan 31 '24 23:01 houyonglu

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.

houyonglu avatar Jan 31 '24 23:01 houyonglu