Commit Graph
7 Commits
Author SHA1 Message Date
Brandon Vandegrift 779532b624 Add new VeilidTable and VeilidClient to WASM API
These new interfaces have been reworked (compared to the original API) to emit (mostly) proper TypeScript types.
2023-09-03 23:27:08 -04:00
Brandon Vandegrift 0abc9a8b45 Revert breaking changes to WASM API 2023-09-03 23:27:08 -04:00
Brandon Vandegrift 1b20037053 Setup for TypeScript type gen for WASM using Tsify
- Includes breaking changes to the WASM API surface, since it now accepts objects instead of stringified JSON.
2023-09-03 23:27:08 -04:00
Brandon Vandegrift 1532db70b7 Add .json file extension to jsonschema output files 2023-09-02 14:17:43 -04:00
Brandon Vandegrift c08b28b240 Fix setup_linux.sh to use scripts from the parent directory 2023-08-19 12:29:30 -04:00
Brandon Vandegrift 18dfe99e09 use as_human_base64 to serialize VeilidRouteBlob 2023-08-16 10:29:59 -04:00
Brandon Vandegrift fae12b234d Fix veilid-wasm errors so it compiles, emit TypeScript types.
- `wrap_api_future` function did not exist, so I used `wrap_api_future_plain` since the return type appears to be a base64 encoded string.
- Argument order for `create_dht_record` was incorrectly swapped.
- `veilid_core::json_as_base64` does not exist, don't exactly know what to replace it with for serde serialization, but I commented it out for now.
- Removed `--no-typescript` flag from `wasm-buildgen` so that TypeScript types are emitted.
2023-08-15 13:47:26 -04:00