alef 0.23.35

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
let {{ param_name }}_input: Option<{{ input_dto_type }}> = if {{ param_name }}.is_undefined() {
        None
    } else {
        Some(serde_wasm_bindgen::from_value::<{{ input_dto_type }}>({{ param_name }}){{ err_conv }}?)
    };
    let {{ param_name }}_core: Option<{{ core_path }}> = {{ param_name }}_input.map(Into::into);