#![allow(dead_code)] use std::{borrow::Cow, rc::Rc, sync::Arc}; use ts_rs::{Config, 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() { let cfg = Config::from_env(); assert_eq!( S::decl(&cfg), "type S = { b: string, c: string, r: string, a: string, };" ) }