I've seen an internal annotation `JsFun` used in t...
# javascript
e
I've seen an internal annotation
JsFun
used in the Compose repository. Why would someone want to use it, instead of coding the expression directly in Kotlin?
Copy code
/**
 * ...
 */
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER)
internal annotation class JsFun(val code: String)
a
It was an implement detail of how we worked with
js
method + there was an attempt to use this annotation in K/Wasm instead of the
js
method.
gratitude thank you 1
For nowadays, the thing is deprecated, as far as I know. @Svyatoslav Kuzmich [JB] am I right?
e