How could then pass the param through `child::chil...
# announcements
d
How could then pass the param through
child::childNodeBlock
?
n
not sure if this is what you want to do but a typealias can take generic parameters like so:
typealias NodeBlockFunction<T>  KFunction1<@ParameterName( name = "block" ) ( child: Node<T> ) -> Unit, Unit>
if you want to modify Node to take a generic argument
d
No, it’s not about that, I just wanna grant a return type to the
block
of
childNodeBlock
and pass it with
child::childNodeBlock
If I had to invoke it, I could do
child.childNodeBlock<T>()