diff --git a/ts-rs/src/lib.rs b/ts-rs/src/lib.rs index 40a0990..2952875 100644 --- a/ts-rs/src/lib.rs +++ b/ts-rs/src/lib.rs @@ -287,12 +287,19 @@ pub trait TS { /// If the type does have generic parameters, then all generic parameters must be replaced with /// a dummy type, e.g `ts_rs::Dummy` or `()`. /// The only requirement for these dummy types is that `EXPORT_TO` must be `None`. - /// Example: - /// ```ignore + /// + /// # Example: + /// ``` + /// use ts_rs::TS; /// struct GenericType(A, B); /// impl TS for GenericType { /// type WithoutGenerics = GenericType; /// // ... + /// # fn decl() -> String { todo!() } + /// # fn decl_concrete() -> String { todo!() } + /// # fn name() -> String { todo!() } + /// # fn inline() -> String { todo!() } + /// # fn inline_flattened() -> String { todo!() } /// } /// ``` type WithoutGenerics: TS + ?Sized;