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.
Added a generic type K to
DepGraph
to constrain the type of name. This is useful in DI frameworks for handling dependencies between classes. SettingK = string
is for backward compatibility. Although currently settingK = any
will not cause any breaking changes, I suggest changing it toany
in future major versions to align with the types ofMap/Set
.