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);