Describe the bug
error[E0277]: the trait bound `<T as TS>::OptionInnerType: TS` is not satisfied
--> src/mypackage/src/lib.rs:1:10
|
11 | #[derive(ts_rs::TS)]
| ^^^^^^^^^ the trait `TS` is not implemented for `<T as TS>::OptionInnerType`
|
= note: this error originates in the derive macro `ts_rs::TS` (in Nightly builds, run with -Z macro-backtrace for more info)
To Reproduce
#[derive(ts_rs::TS)]
#[ts(optional_fields)]
pub enum MyEnum<T> {
MyVariant { my_field: T },
}
Expected behavior
No compiler errors
Screenshots
Version
v12.0.0
Additional context