Module workflow_wasm::utils
source · Expand description
Utilities for calling JavaScript functions and retrieving values from JavaScript object properties.
Functions
- Call a JavaScript function without arguments
- Call a JavaScript function with a single argument
- Call a JavaScript function with two arguments
- Obtain a
bool
value from the object propertyprop
- Obtain
f64
value from an object property. - Obtain a
JsValue
value from the object propertyprop
- Obtain a
String
value from the object propertyprop
- Obtain
u8
value from the object propertyprop
. - Obtain a
u64
value from an object property. Returns successfully parsed value or 0. - Obtain
Vec<u8>
from the supplied big number - Obtain a
Vec<u8>
from the propertyprop
expressed as a big number - Obtain a
Vec<u8>
value from the object propertyprop
(usingUint8Array
)