Kotlin / dukat

Converter of <any kind of declarations> to Kotlin external declarations
554 stars 42 forks source link

Expose long long WebIDL types as Kotlin Long #519

Open ilya-g opened 8 months ago

ilya-g commented 8 months ago

⭐ 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