How can I say that said method is accessible from js code? From the documentation its mentioned to use @HostAccess.Export but I don't know how to use it in clojure.
just from poking around in docs (so another wild guess to consider)
• if the annotation can be added, it should be addable via metadata (not sure because it's a method in deftype, but I don't know if it'll work on a protocol method: <https://clojure.org/reference/datatypes#_java_annotation_support>
• another option with no annotations is building a HostAccess object and passing it to a Context.Builder: <https://www.graalvm.org/sdk/javadoc/org/graalvm/polyglot/HostAccess.Builder.html#allowAccess(java.lang.reflect.Executable)>, <https://www.graalvm.org/truffle/javadoc/org/graalvm/polyglot/Context.Builder.html#allowHostAccess(org.graalvm.polyglot.HostAccess)>
I managed to write the proper annotation. I added it to https://stackoverflow.com/questions/79038490/host-access-to-clojure-objects-in-graalvm/79038491#79038491for google searches . Thanks for the help