Skip to content

Conversation

e-pavlica
Copy link
Contributor

To address #54, adjusts the EventBus import to preserve the imported name, while still adding type definitions to the imported object.

I think the behavior described in #54 has to do with some sort of proxying Rollup/tsc is doing; reassigning the name of the imported object seems to break accessing the properties of said object. By maintaining the EventBus name across the import/export, the referenced bug no longer occurs.

I'm by no means a TS expert, so this may be completely off base, but it does allow us to use ApplicationRecord.sync = true in my current project.

To address graphiti-api#54,
adjusts the EventBus import to preserve the imported name, while still adding
type definitions to the imported object.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant