DIKit icon indicating copy to clipboard operation
DIKit copied to clipboard

Convert dependency type from struct to tuple

Open ishkawa opened this issue 7 years ago • 1 comments

Currently, dikitgen expects that Injectable.Dependency is declared as a struct.

Structs can have computed properties and methods, but the type elements are not related to declaring dependencies. I think Injectable.Dependencyshould focus on expressing dependencies, and the other works should be done by other components.

To encourage developers to focus on defining dependencies, I'm planning to convert Injectable.Dependency to tuple type.

ishkawa avatar May 18 '18 06:05 ishkawa

Single dependency cannot be tuple type. Do you have any plan to represent it?

takasek avatar Jun 07 '18 06:06 takasek