use ts_rs::TS; #[test] fn list() { #[derive(TS)] struct List { #[allow(dead_code)] data: Option>, } assert_eq!( List::decl(), "interface List { data: Array | null, }" ); }