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

Expose long long WebIDL types as Kotlin Long #519

Open
ilya-g opened this issue Jan 29, 2024 · 0 comments
Open

Expose long long WebIDL types as Kotlin Long #519

ilya-g opened this issue Jan 29, 2024 · 0 comments
Labels

Comments

@ilya-g
Copy link
Member

ilya-g commented Jan 29, 2024

⭐ Suggestion

See the issue https://youtrack.jetbrains.com/issue/KT-64620/KJS-Fix-org.w3c.files.Blobslice-signature
Example of WebIDL: https://w3c.github.io/FileAPI/#blob-section

Currently long long types are exposed as Int which limits the range of values. Dukat could generate overloads both with Int and Long parameter types. Though it should be decided whether Long values that are non-native to JS are passed as is and the callee uses their toNumber conversion, or if a Kotlin extension is generated which takes care of converting Long values to native JS numbers.

💻 Use Cases

📚 Additional Information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant