macro_rules! ts_type {
(| $member:tt $($rest:tt)*) => { ... };
($elem:tt [] $($rest:tt)*) => { ... };
($object:tt [ $($key:tt)+ ] $($rest:tt)*) => { ... };
($generic:tt < $arg:tt $($rest:tt)*) => { ... };
($base:tt $($rest:tt)*) => { ... };
}Expand description
Create a TsType using TypeScript type syntax.