biscuit-auth / biscuit-wasm

WebAssembly wrapper for Biscuit authorization tokens
Apache License 2.0
24 stars 10 forks source link

add template strings for builders #16

Closed Geal closed 1 year ago

divarvel commented 1 year ago

I went ahead and implemented tagged templates in JS directly. The main reason is that not all terms can be deserialized directly in rust from a JsValue. In a few cases like dates, we need preprocessing in JS, using instanceOf to turn the value into something that can be deserialized via serde.