#![cfg(feature = "indexmap-impl")] use indexmap::{IndexMap, IndexSet}; use ts_rs::TS; #[test] fn indexmap() { #[derive(TS)] #[allow(dead_code)] struct Indexes { map: IndexMap, set: IndexSet, } assert_eq!( Indexes::decl(), "interface Indexes { map: Record, set: Array, }" ) }