-
Notifications
You must be signed in to change notification settings - Fork 631
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Watcher backends: use Flow-typed object payloads (#1411)
Summary: Pull Request resolved: #1411 Ensure `'add'` and `'change'` events fired by watcher backends always have associated `metadata` (and that `'delete'` events never do), by typing change event payloads as objects with the `event: 'change' | 'add' | 'delete'` as a discriminator. (This is in preparation for refactoring out the distinction between `'change'` and `'add'` from backends, which means they don't need to track files and can do much less IO) Changelog: Internal Reviewed By: hoxyq Differential Revision: D67287046 fbshipit-source-id: 24773ec5e1a72657c16b9529aa988aa83da404a3
- Loading branch information
1 parent
d0e630b
commit f7343da
Showing
8 changed files
with
322 additions
and
333 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
Oops, something went wrong.