Skip to main content

from_js

Function from_js 

Source
pub fn from_js<T>(val: JsValue) -> Result<T, WasmCommonError>
Expand description

Deserialize a JavaScript value.

ยงErrors

Returns WasmCommonError::Decode when the value does not match T.