tsify-next 0.5.6

Tsify-next is a library for generating TypeScript definitions from rust code.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use tsify_next::Tsify;

#[derive(Tsify)]
#[tsify(into_wasm_abi, from_wasm_abi)]
pub struct GenericStruct<T> {
    x: T,
}

#[derive(Tsify)]
#[tsify(into_wasm_abi, from_wasm_abi)]
pub struct GenericNewtype<T>(T);