I have an issue with the typescript generation. Pr...
# javascript
m
I have an issue with the typescript generation. Promise are not properly mapped (https://youtrack.jetbrains.com/issue/KT-43632). There is a workaround to force the Typescript type to use ?
a
return
dynamic
and cast it after
await
🤮
m
At this moment, I return kotln.js.Promise and in my typescript project, I just write this:
const data: MyDataType = Requests.fetchAll()
and it works.