-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract events into named types (#4254)
Summary: Being able to refine log events to named types in tests would be very helpful, so I've(?) refactored the union of log events to be a union of named types. This refactor brought to you by ChatGPT. Prompt: > Can you refactor this Flow code to extract each log event type into its own named type, with the LogEvent type being a union of those types? Took a few tries because the output was longer than it could emit as one response: > Can you do the last ones, starting with StorePublishLogEvent (and the resulting union of all named types) Pull Request resolved: #4254 Reviewed By: rbalicki2 Differential Revision: D44263920 Pulled By: captbaritone fbshipit-source-id: dc2c0a9bc3e3de89656fefdfe770d3b4b595de36
- Loading branch information
1 parent
3073f1e
commit e43a369
Showing
1 changed file
with
209 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters