alef 0.25.37

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
let {{ param_name }}_input: {{ input_dto_type }} = if {{ param_name }}.is_undefined() {
        {% if has_default %}{{ input_dto_type }}::default(){% else %}return Err(JsValue::from_str("{{ param_name }} is required")){% endif %}
    } else {
        serde_wasm_bindgen::from_value::<{{ input_dto_type }}>({{ param_name }}){{ err_conv }}?
    };
    let {{ param_name }}_core: {{ core_path }} = {{ param_name }}_input.into();