Upgrading ts_rs to 10.0.0 (#5163)

* Upgrading ts_rs to 10.0.0

* Adding ts_option directives, and woodpecker test.

* Fixing ts_options.
This commit is contained in:
Dessalines
2024-11-06 09:50:13 -05:00
committed by GitHub
parent d162ec1638
commit df664d9d9a
44 changed files with 492 additions and 56 deletions

14
scripts/ts_bindings_check.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -e
# This check is only used for CI.
CWD="$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
cd "$CWD/../"
# Export the ts-rs bindings
cargo test --workspace export_bindings
# Make sure no rows are returned
! grep -nr --include=\*.ts ' | null' ./crates/