Change returning value of DirectEventHandler and BubblingEventHandler to void

Summary:
returning type of Bubbling and Direct Event should be always void of Promise (if async). Other situations shouldn't be permitted.
Reformated all cases when it the function wasn't void.

Reviewed By: rickhanlonii

Differential Revision: D16165962

fbshipit-source-id: 7c1377c3ed4bd54a431a13e5bcda4f7ec0adf4dc
This commit is contained in:
Michał Osadnik
2019-07-10 05:40:20 -07:00
committed by Facebook Github Bot
parent 8e4b2e7448
commit fb7b2d3533
5 changed files with 25 additions and 29 deletions
@@ -81,7 +81,7 @@ export type RefreshControlProps = $ReadOnly<{|
/**
* Called when the view starts refreshing.
*/
onRefresh?: ?() => mixed,
onRefresh?: ?() => void,
/**
* Whether the view should be indicating an active refresh.