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.
This commit is contained in:
Brandon Vandegrift
2023-08-18 18:32:04 -04:00
parent 0abc9a8b45
commit 779532b624
5 changed files with 347 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ use super::*;
Clone, Debug, Serialize, Deserialize, PartialOrd, Ord, PartialEq, Eq, Hash, Default, Tsify,
)]
#[serde(from = "Vec<CryptoTyped<K>>", into = "Vec<CryptoTyped<K>>")]
// TODO: figure out hot to TS type this as `string`, since it's converted to string via the JSON API.
pub struct CryptoTypedGroup<K = PublicKey>
where
K: Clone