I'm trying to generate an object which implements an interface with type parameter like the following example:
object HelloWorld : Feature<Intent>
I can generate the object that implements my interface like the following code:
val typeSpecBuilder = TypeSpec.objectBuilder("HelloWorld")
typeSpecBuilder.addSuperinterface(
      ClassName(
               "com.example.mylib",
               "Feature"
      )
How can I pass the type argument to the interface?
 
                        
Import
plusParametermanually:And use like below: