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

Fix issue of type i64 in Rust not properly getting converted to BigInt in TypeScript #858

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kdevcse
Copy link

@kdevcse kdevcse commented Jan 14, 2025

When compiling livesplit-core to WASM TypeScript from Rust, a compilation error is produced in the resulting index.ts file for the wholeSeconds function. The return type for this function is incorrectly set to number instead of BigInt, this PR corrects that problem by modifying the wasm_bindgen.rs file appropriately.

Admittedly, I don't know much about Rust so I could be handling this wrong, but I believe this is the correct fix and it seems to be working correctly for me. Let me know if I need to make any additional changes to get this working properly again 👍

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

Successfully merging this pull request may close these issues.

1 participant