Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Converting Types for JS API? #30

Open
ScottPierce opened this issue Jun 28, 2023 · 1 comment
Open

Converting Types for JS API? #30

ScottPierce opened this issue Jun 28, 2023 · 1 comment
Labels
enhancement New feature or request help wanted Help me write the code!

Comments

@ScottPierce
Copy link

There are certain types that JS doesn't work well with Kotlin i.e. if you have a function that returns a List<String>. It'd be nice if there was a way to automatically convert Kotlin collections to their correct JS counterparts.

List to Array
Map to JS Object
I'm sure there are others.

@ForteScarlet
Copy link
Owner

🤔️ This does seem to be a problem. Perhaps some way of providing support for type conversion of returned results (and which could be user-defined and not limited to JS) would be considered.
I haven't thought about it yet though, and the JS target is not available at the moment, so maybe I'll come back to it after KT-53993 is fixed or #29 is implemented 😉 .

@ForteScarlet ForteScarlet added enhancement New feature or request help wanted Help me write the code! labels Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Help me write the code!
Projects
None yet
Development

No branches or pull requests

2 participants