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 authored and Facebook Github Bot committed 2019-07-10 05:40:20 -07:00
1 parent 8e4b2e7448
commit fb7b2d3533
5 files changed
+25 -29

No files matched your search

@@ -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.