ts-function 0.4.0

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