use ts_rs::TS; use serde::Serialize; #[derive(TS, Serialize)] #[ts(export)] pub enum SomeTypeList { Value1 { #[serde(skip)] #[ts(skip)] skip_this: String, }, Value2 } #[test] fn issue_80() { let ty = SomeTypeList::inline(); assert_eq!(ty, r#"{ "Value1": { } } | "Value2""#); }