Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

declare type definitions on EventBus #75

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

None yet

1 participant