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

chore: forbid importing src/common/Events.ts #6183

Merged
merged 1 commit into from Jul 8, 2020

Conversation

jackfranklin
Copy link
Collaborator

This file is now deprecated and only used by the coverage tool and
DocLint - these tools will be updated to not rely on it in the future.

We now have events defined per class - e.g. all the events that Page
can emit are defined in the PageEmittedEvents enum, and similar. We
have to keep Events.ts around for the aforementioned tools, but don't
want its usage creeping back into our source code.

This file is now deprecated and only used by the coverage tool and
DocLint - these tools will be updated to not rely on it in the future.

We now have events defined per class - e.g. all the events that `Page`
can emit are defined in the `PageEmittedEvents` enum, and similar. We
have to keep `Events.ts` around for the aforementioned tools, but don't
want its usage creeping back into our source code.
@jackfranklin jackfranklin merged commit 19f188a into main Jul 8, 2020
@jackfranklin jackfranklin deleted the ban-using-events-file branch July 8, 2020 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants