Module near_syn::ts[][src]

Functions to transpile Rust to TypeScript.

Functions

ts_sig

Returns the signature of the given Rust method. The resulting TypeScript binding is a valid method definition expected by the NEAR RPC. Thus, the following conversion are applied:

ts_type

Return the TypeScript equivalent type of the Rust type represented by ty. Rust primitives types and String are included.