Edoardo Luppi
02/14/2024, 10:51 AMJsFun
used in the Compose repository.
Why would someone want to use it, instead of coding the expression directly in Kotlin?
/**
* ...
*/
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER)
internal annotation class JsFun(val code: String)
Artem Kobzar
02/14/2024, 10:57 AMjs
method + there was an attempt to use this annotation in K/Wasm instead of the js
method.Artem Kobzar
02/14/2024, 10:58 AMEdoardo Luppi
02/14/2024, 7:11 PM