Pre-suppress errors ahead of next release

Reviewed By: gkz

Differential Revision: D71039278

fbshipit-source-id: 5d42ee1707335bfb579fa49beeb597d98eba70c5
This commit is contained in:
Sam Zhou
2025-03-12 09:10:02 -07:00
committed by Facebook GitHub Bot
parent 43fe9f3d88
commit 2cdd79f4fc
3 changed files with 5 additions and 0 deletions
+3
View File
@@ -119,12 +119,15 @@ class Alert {
if (action === constants.buttonClicked) {
if (buttonKey === constants.buttonNeutral) {
// $FlowFixMe[incompatible-type]
// $FlowFixMe[incompatible-use]
buttonNeutral.onPress && buttonNeutral.onPress();
} else if (buttonKey === constants.buttonNegative) {
// $FlowFixMe[incompatible-type]
// $FlowFixMe[incompatible-use]
buttonNegative.onPress && buttonNegative.onPress();
} else if (buttonKey === constants.buttonPositive) {
// $FlowFixMe[incompatible-type]
// $FlowFixMe[incompatible-use]
buttonPositive.onPress && buttonPositive.onPress();
}
} else if (action === constants.dismissed) {
@@ -117,6 +117,7 @@ class TaskQueue {
} catch (e) {
e.message =
// $FlowFixMe[incompatible-type]
// $FlowFixMe[incompatible-use]
'TaskQueue: Error with task ' + (task.name || '') + ': ' + e.message;
throw e;
}
+1
View File
@@ -15,6 +15,7 @@
* when defining the types here. Consider both presence (`?`) as well as
* writeability (`+`) when defining types.
*/
// $FlowFixMe[libdef-override]
declare var global: {
// setUpGlobals
+window: typeof global,