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

Handle an interface with suspend that returns a JS friendly type #34

Merged
merged 1 commit into from
Feb 2, 2023

Commits on Feb 2, 2023

  1. Handle an interface with suspend that returns a JS friendly type

    If we are KustomExporting an interface that contains a suspend that
    returns a JS friendly type (e.g. Long <-> Double), we want to await
    the promise result before importing the JS type back to the Kotlin
    type.
    
    > promise.toLong().await()
    becomes:
    > promise.await().toLong()
    shama committed Feb 2, 2023
    Configuration menu
    Copy the full SHA
    3c21536 View commit details
    Browse the repository at this point in the history