#How do I use listen with leptos?

3 messages · Page 1 of 1 (latest)

tepid light
#

How do I define listen with wasm_bindgen?
I'd guess it's something along the lines of:
#[wasm_bindgen(js_namespace = ["window", "__TAURI__", "event"])] async fn listen(name: &str, function: Js...)
But I don't know what datatype a js function is.

tepid light
#

I switched to tauri_sys, but I'd still like to know what data type it is

glass herald