I have added a comment here in case you prefer to ...
# javascript
s
I have added a comment here in case you prefer to answer in the bugtracker https://youtrack.jetbrains.com/issue/KT-22635#focus=streamItem-27-3283501-0-0
a
TL;DR The workaround should probably work, the declarations could have been better, the JS behavior depending on the return value is tricky.
At least that's what I've dug up so far. 😃 Not really an expert on our generated API's =(
s
Ok let's continue the discussion in the issue then, indeed the workaround works.
a
👍