#![allow(dead_code)] use std::{borrow::Cow, rc::Rc, sync::Arc}; use ts_rs::TS; #[derive(TS)] #[ts(export, export_to = "unsized/")] struct S<'a> { b: Box, c: Cow<'a, str>, r: Rc, a: Arc, } #[test] fn contains_str() { assert_eq!( S::decl(), "type S = { b: string, c: string, r: string, a: string, };" ) }