I have a method with the signature : `fun map(name...
# compose
k
I have a method with the signature :
fun map(name: String): @Composable ()->Unit
. I need to generate this function using
KotlinPoet
but I can’t add
@Composable
to the return type, any clues how to do it ?
j
#squarelibraries
Tldr: call annotated on LambdaTypeName
k
What version of the library should I use to find the method you mentioned ?
j
The latest. Is there any reason to not use the latest?
k
Trying to use the version from the docs
1.9.0
giving me an error. Can’t find the package
com.squareup.kotlinpoet
Cannot use it in Java/Kotlin module starting from version 1.7 and above
j
File a bug?
k
Yea sure, thank you 😄