I post it here as well :slightly_smiling_face:
# javascript
o
I post it here as well 🙂
e
Hey! This is the same feedback I also gave to the K/JS team. It is indeed a big deal for JS or TS consumers. My first comment about it was back in June 2023. I've opened https://youtrack.jetbrains.com/issue/KT-73827 to track it.
a
Hi guys. I will add this support, but I cannot say anything about deadlines.
👍 1
e
Thanks @Artem Kobzar, in my case it's not something urgent. We're are planning to increase the size of the exported SDK throughout 2025 but I still haven't come up with said plan.
o
We're very interested in this. 🙂
đź‘€ 1
m
Hi Guys, @Artem Kobzar, is there any chance you will implement this in the near future? We would also like to have JSDoc for our JS api consumers.
e
Considering that JS interop seem to be one of the priorities, I guess we'll have it sooner than later. But indeed, this missing piece is problematic, and what I do now is publish a separate readme/website for our TS consumers.
m
Thanks @Edoardo Luppi! Do you write those docs manually?
e
Yes I do. It's a little bit time consuming, but not having them would be worse.
true 1
a
We're already working on it. Some internal reworks are required, but we're already in the middle of them and plan to ship them ASAP. The ticket to track is here: https://youtrack.jetbrains.com/issue/KT-56493/
thank you color 1
K 1
e
Curious, is the rework necessary because you don't have access to comments in the current state (while traversing the IR)?
a
Yes, comments are not properly saved anywhere (except metadata, and such saving is turned off by default) after FIR2IR, so we don't have this information. The same problem exists with exporting type aliases.
e
Makes sense! Does postponing the processing to the metadata layer incur in some performance penalty that you have to account for? (e.g., because now you have to traverse an additional representation)
a
I don't think so, since we do the same traversing for IR to create the ExportModel representation. Potentially, it may lead to using more memory since we need to keep both IR and FIR in the same place for a while
thank you color 1