ts-function 0.2.0

A proc-macro that generates TypeScript type aliases and wasm-bindgen ABI trait impls for Rust callback wrapper structs
Documentation
1
2
3
4
5
export function get_throw_cb() {
    return () => {
        throw new Error("Intentional JavaScript Error");
    };
}