[go: up one dir, main page]

ts-rs 2.1.3

generate typescript bindings from rust types
Documentation
1
2
3
4
5
6
7
8
9
use ts_rs::TS;

#[derive(TS)]
struct Unit;

#[test]
fn test() {
    assert_eq!("export type Unit = null;", Unit::decl())
}