Skip to content

PublishedEvent type can't be instantiated #23

@CorentinDoue

Description

@CorentinDoue

In my last project, PublishedEvent<typeof MyEvent> ends with TS2589: Type instantiation is excessively deep and possibly infinite.

However, the type seems correctly inferred:
image

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

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions