In my last project, PublishedEvent<typeof MyEvent> ends with TS2589: Type instantiation is excessively deep and possibly infinite.
However, the type seems correctly inferred:

I can also recreate the PublishedEvent type locally and it works:

Minimal reproduction could be found here: https://github.com/CorentinDoue/typebridge-error-repro
I tried to downgrade the following dependencies:
- typescript: 4.9
- json-schema-to-ts: 2.12.0
But I couldn't manage to make it work again, so I don't know what was the breaking change.
In my last project,
PublishedEvent<typeof MyEvent>ends withTS2589: Type instantiation is excessively deep and possibly infinite.However, the type seems correctly inferred:

I can also recreate the

PublishedEventtype locally and it works:Minimal reproduction could be found here: https://github.com/CorentinDoue/typebridge-error-repro
I tried to downgrade the following dependencies:
But I couldn't manage to make it work again, so I don't know what was the breaking change.