ts-function 0.3.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
6
7
8
9
10
11
export function get_order() {
  return {
    account: "0xAlice",
    amount: 500n,
    token: {
      symbol: "FOO",
      decimals: null,
      totalSupply: 100n,
    },
  };
}