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

Add corresponding types for JS-FFI #7

Closed
vixalien opened this issue Dec 26, 2022 · 1 comment
Closed

Add corresponding types for JS-FFI #7

vixalien opened this issue Dec 26, 2022 · 1 comment

Comments

@vixalien
Copy link

For the https://github.com/aapoalas/denonomicon/blob/main/static/contents/types.md page, it should also show the corresponding type for javascript. for example:

FFI Javascript
bool boolean

the thing is, as a web developer I'm extremely confused whether the i64 is a number, or it must be provided as a BigInt.

I believe based on the limits of JS' Number (MAX_SIZE, MAX_INT_SIZE) etc, one should be able to figure out if an int64 is assignable to a JS Number or if it requires a BigInt.

@aapoalas
Copy link
Owner

Hey, thank you for the feedback! This data is available in the Deno Manual https://deno.land/manual@v1.36.1/runtime/ffi_api#supported-types but I also added it to Denonomicon now.

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

No branches or pull requests

2 participants