Given the following code:
return TyphoonDefinition.withClass(AppDelegate.classForCoder()) {
(definition) in
definition.injectProperty("assembly")
})
. . . it is necessary to use .classForCoder()
, as .class()
is struck out. This is certainly unintuitive compared to simply .class()
. Is there an alternative that provides better readability?