{"push_id":1011671956,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"ea3dcbf59bf5330c7710773bd727e273963d6b21","before":"276c5cb10293e0b3be67d778f5352478bfec1326","commits":[{"sha":"ea3dcbf59bf5330c7710773bd727e273963d6b21","author":{"email":"9f4deaf11d4f8509b378f2fdf5921416314d184d@fb.com","name":"Jeff Morrison"},"message":"Allow `Event` to be parameterized on its target\n\nSummary:In places where people specify the type of an `Event` (usually the parameter of an event handler), it is common that the target of the event is fairly well known/implicitly expected (i.e.: `onInputChange(e: Event)` expects some kind of event on an `HTMLInputElement` -- developers usually infer this easily by context/naming/etc).\n\nThere is a common annoyance, however, when someone wishes to access the `target` of the event: They have to refine `e.target` explicitly in some kind of if-branch. This feels pretty heavyweight and is mostly just Flow boilerplate leaking into the handler's logic. So the idea here is to allow users to provide this hint to Flow in the Flow type itself rather than leaking into the logic in a way that feels heavy-handed and robotic.\n\nSo this logic:\n\n```\n...\n  _onVideoChange(event: Event) {\n    if (event.target instanceof HTMLVideoElement) {\n      (event.target.videoWidth: number);\n    }\n  }\n...\n```\n\nnarrows to:\n\n```\n...\n  _onVideoChange(event: Event<HTMLVideoElement>) {\n    (event.target.videoWidth: number);\n  }\n...\n```\n\nReviewed By: zpao\n\nDifferential Revision: D2927298\n\nfb-gh-sync-id: 1576975089c3add4c5ce034ce4469b7b54fec484\nshipit-source-id: 1576975089c3add4c5ce034ce4469b7b54fec484","distinct":true,"url":"https://api.github.com/repos/facebook/flow/commits/ea3dcbf59bf5330c7710773bd727e273963d6b21"}]}