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
const state = {
  args: [],
};

export function get_args_0() {
  return () => {
    state.args = [0];
  };
}
export function get_args_1() {
  return (a) => {
    state.args = [1, a];
  };
}
export function get_args_2() {
  return (a, b) => {
    state.args = [2, a, b];
  };
}
export function get_args_3() {
  return (a, b, c) => {
    state.args = [3, a, b, c];
  };
}
export function get_args_5() {
  return (a, b, c, d, e) => {
    state.args = [5, a, b, c, d, e];
  };
}

export function get_args_state() {
  const res = new Float64Array(state.args.length);
  for (let i = 0; i < state.args.length; i++) res[i] = state.args[i];
  return res;
}