Function convert_result

Source
fn convert_result<T: DeserializeOwned>(
    result: Result<JsValue, JsValue>,
) -> Result<T, RepositoryError>
Expand description

Converts a Result<JsValue, JsValue> to a typed Result<T, RepositoryError> using [tsify_next::serde_wasm_bindgen]