Skip to content

Commit c43a399

Browse files
SamChou19815facebook-github-bot
authored andcommitted
Replace $FlowIssue with $FlowFixMe (#52976)
Summary: Pull Request resolved: #52976 Changelog: [Internal] Reviewed By: GijsWeterings Differential Revision: D79400163 fbshipit-source-id: b0c4f10b18b99550bdf95be620187f011b62f2f7
1 parent e1f6a19 commit c43a399

22 files changed

Lines changed: 29 additions & 29 deletions

File tree

.flowconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ module.system.haste.module_ref_prefix=m#
7575

7676
react.runtime=automatic
7777

78-
suppress_type=$FlowIssue
78+
suppress_type=$FlowFixMe
7979
suppress_type=$FlowFixMe
8080
suppress_type=$FlowFixMeProps
8181
suppress_type=$FlowFixMeState

packages/debugger-shell/__tests__/electron-dependency-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ const semver = require('semver');
1919
// safety to ensure the target of the resolution is in sync with the declared dependency.
2020
describe('Electron dependency', () => {
2121
test('should be semver-satisfied by the actual electron version', () => {
22-
// $FlowIssue[untyped-import] - package.json is not typed
22+
// $FlowFixMe[untyped-import] - package.json is not typed
2323
const ourPackageJson = require('../package.json');
2424

2525
const declaredElectronVersion = ourPackageJson.dependencies.electron;
2626
expect(declaredElectronVersion).toBeTruthy();
2727

28-
// $FlowIssue[untyped-import] - package.json is not typed
28+
// $FlowFixMe[untyped-import] - package.json is not typed
2929
const electronPackageJson = require('electron/package.json');
3030

3131
const actualElectronVersion = electronPackageJson.version;

packages/react-native/Libraries/Animated/__tests__/Animated-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ describe('Animated', () => {
261261
expect(console.warn).toBeCalledWith(
262262
'Animated: `useNativeDriver` was not specified. This is a required option and must be explicitly set to `true` or `false`',
263263
);
264-
// $FlowIssue[prop-missing]
264+
// $FlowFixMe[prop-missing]
265265
console.warn.mockRestore();
266266
});
267267

packages/react-native/Libraries/Animated/nodes/AnimatedObject.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const MAX_DEPTH = 5;
2121

2222
export function isPlainObject(
2323
value: mixed,
24-
/* $FlowIssue[incompatible-type-guard] - Flow does not know that the prototype
24+
/* $FlowFixMe[incompatible-type-guard] - Flow does not know that the prototype
2525
and ReactElement checks preserve the type refinement of `value`. */
2626
): value is $ReadOnly<{[string]: mixed}> {
2727
return (

packages/react-native/Libraries/AppState/AppState.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,18 +120,18 @@ class AppStateImpl {
120120
}
121121
switch (type) {
122122
case 'change':
123-
// $FlowIssue[invalid-tuple-arity] Flow cannot refine handler based on the event type
123+
// $FlowFixMe[invalid-tuple-arity] Flow cannot refine handler based on the event type
124124
const changeHandler: AppStateStatus => void = handler;
125125
return emitter.addListener('appStateDidChange', appStateData => {
126126
changeHandler(appStateData.app_state);
127127
});
128128
case 'memoryWarning':
129-
// $FlowIssue[invalid-tuple-arity] Flow cannot refine handler based on the event type
129+
// $FlowFixMe[invalid-tuple-arity] Flow cannot refine handler based on the event type
130130
const memoryWarningHandler: () => void = handler;
131131
return emitter.addListener('memoryWarning', memoryWarningHandler);
132132
case 'blur':
133133
case 'focus':
134-
// $FlowIssue[invalid-tuple-arity] Flow cannot refine handler based on the event type
134+
// $FlowFixMe[invalid-tuple-arity] Flow cannot refine handler based on the event type
135135
const focusOrBlurHandler: () => void = handler;
136136
return emitter.addListener('appStateFocusChange', hasFocus => {
137137
if (type === 'blur' && !hasFocus) {

packages/react-native/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ const AccessibilityInfo = {
396396
*/
397397
addEventListener<K: $Keys<AccessibilityEventDefinitions>>(
398398
eventName: K,
399-
// $FlowIssue[incompatible-type] - Flow bug with unions and generics (T128099423)
399+
// $FlowFixMe[incompatible-type] - Flow bug with unions and generics (T128099423)
400400
handler: (...AccessibilityEventDefinitions[K]) => void,
401401
): EventSubscription {
402402
const deviceEventName = EventNames.get(eventName);

packages/react-native/Libraries/Components/Switch/Switch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ const Switch: component(
215215
native.value != null && native.value !== jsValue;
216216
if (
217217
shouldUpdateNativeSwitch &&
218-
// $FlowIssue[method-unbinding]
218+
// $FlowFixMe[method-unbinding]
219219
nativeSwitchRef.current?.setNativeProps != null
220220
) {
221221
if (Platform.OS === 'android') {

packages/react-native/Libraries/Core/Timers/__tests__/JSTimers-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ describe('JSTimers', () => {
3434
});
3535

3636
afterEach(() => {
37-
// $FlowIssue[prop-missing]
37+
// $FlowFixMe[prop-missing]
3838
console.warn.mockRestore();
3939
});
4040

packages/react-native/Libraries/Interaction/InteractionManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ const InteractionManagerStub = {
103103
cancel: () => void,
104104
...
105105
} {
106-
let immediateID: ?$FlowIssue;
106+
let immediateID: ?$FlowFixMe;
107107
const promise = new Promise(resolve => {
108108
immediateID = setImmediate(() => {
109109
if (typeof task === 'object' && task !== null) {

packages/react-native/Libraries/Utilities/__tests__/useRefEffect-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class TestEffect {
4040
this.key = key;
4141
}
4242
static called(name: string, key: ?string): $FlowFixMe {
43-
// $FlowIssue[prop-missing] - Flow does not support type augmentation.
43+
// $FlowFixMe[prop-missing] - Flow does not support type augmentation.
4444
return expect.effect(name, key);
4545
}
4646
}
@@ -56,7 +56,7 @@ class TestEffectCleanup {
5656
this.key = key;
5757
}
5858
static called(name: string, key: ?string): $FlowFixMe {
59-
// $FlowIssue[prop-missing] - Flow does not support type augmentation.
59+
// $FlowFixMe[prop-missing] - Flow does not support type augmentation.
6060
return expect.effectCleanup(name, key);
6161
}
6262
}

0 commit comments

Comments
 (0)