remove_all_decoders

This commit is contained in:
Martin Kavík 2024-07-07 14:53:30 +02:00
parent deef698f8d
commit b2055ff22d
8 changed files with 46 additions and 1 deletions

View file

@ -4,6 +4,7 @@ use zoon::*;
type FullVarName = String;
type AddedDecodersCount = usize;
type RemovedDecodersCount = usize;
type DecoderPath = String;
#[wasm_bindgen(module = "/typescript/bundles/strict_eval.js")]
@ -72,4 +73,9 @@ impl FW {
pub async fn add_decoders(decoder_paths: Vec<DecoderPath>) -> AddedDecodersCount {
platform::add_decoders(decoder_paths).await
}
/// JS: `FW.remove_all_decoders()` -> `5`
pub async fn remove_all_decoders() -> RemovedDecodersCount {
platform::remove_all_decoders().await
}
}