Skip to content

Commit 535ef4c

Browse files
FlowUpgradeInFbsource Botfacebook-github-bot
authored andcommitted
Upgrade Flow in fbsource
Reviewed By: SamChou19815 Differential Revision: D112967104
1 parent 95df500 commit 535ef4c

5 files changed

Lines changed: 15 additions & 0 deletions

File tree

packages/react-native/src/private/webapis/dom/abort-api/AbortController.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export class AbortController {
4242
* Initialize this controller.
4343
*/
4444
// $FlowExpectedError[unsupported-syntax]
45+
// $FlowFixMe[illegal-key]
4546
[SIGNAL_KEY]: AbortSignal;
4647

4748
constructor() {

packages/react-native/src/private/webapis/dom/abort-api/AbortSignal.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,10 @@ export class AbortSignal extends EventTarget {
132132
}
133133

134134
// $FlowExpectedError[unsupported-syntax]
135+
// $FlowFixMe[illegal-key]
135136
[ABORTED_KEY]: boolean = false;
136137
// $FlowExpectedError[unsupported-syntax]
138+
// $FlowFixMe[illegal-key]
137139
[REASON_KEY]: unknown;
138140

139141
/**

packages/react-native/src/private/webapis/dom/events/Event.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,27 +71,35 @@ export default class Event {
7171
_timeStamp: number;
7272

7373
// $FlowExpectedError[unsupported-syntax]
74+
// $FlowFixMe[illegal-key]
7475
[COMPOSED_PATH_KEY]: boolean = [];
7576

7677
// $FlowExpectedError[unsupported-syntax]
78+
// $FlowFixMe[illegal-key]
7779
[CURRENT_TARGET_KEY]: EventTarget | null = null;
7880

7981
// $FlowExpectedError[unsupported-syntax]
82+
// $FlowFixMe[illegal-key]
8083
[EVENT_PHASE_KEY]: boolean = Event.NONE;
8184

8285
// $FlowExpectedError[unsupported-syntax]
86+
// $FlowFixMe[illegal-key]
8387
[IN_PASSIVE_LISTENER_FLAG_KEY]: boolean = false;
8488

8589
// $FlowExpectedError[unsupported-syntax]
90+
// $FlowFixMe[illegal-key]
8691
[IS_TRUSTED_KEY]: boolean = false;
8792

8893
// $FlowExpectedError[unsupported-syntax]
94+
// $FlowFixMe[illegal-key]
8995
[STOP_IMMEDIATE_PROPAGATION_FLAG_KEY]: boolean = false;
9096

9197
// $FlowExpectedError[unsupported-syntax]
98+
// $FlowFixMe[illegal-key]
9299
[STOP_PROPAGATION_FLAG_KEY]: boolean = false;
93100

94101
// $FlowExpectedError[unsupported-syntax]
102+
// $FlowFixMe[illegal-key]
95103
[TARGET_KEY]: EventTarget | null = null;
96104

97105
constructor(type: string, options?: ?EventInit) {

packages/react-native/src/private/webapis/dom/events/EventTarget.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ export default class EventTarget {
224224
* which is `AT_TARGET` during both passes through the target node.
225225
*/
226226
// $FlowExpectedError[unsupported-syntax]
227+
// $FlowFixMe[illegal-key]
227228
[EVENT_TARGET_GET_DECLARATIVE_LISTENER_KEY](
228229
event: Event,
229230
isCapture: boolean,
@@ -239,6 +240,7 @@ export default class EventTarget {
239240
* (see https://dom.spec.whatwg.org/#get-the-parent).
240241
*/
241242
// $FlowExpectedError[unsupported-syntax]
243+
// $FlowFixMe[illegal-key]
242244
[EVENT_TARGET_GET_THE_PARENT_KEY](): EventTarget | null {
243245
return null;
244246
}
@@ -249,6 +251,7 @@ export default class EventTarget {
249251
* canceled (i.e. `event.defaultPrevented`), otherwise `true`.
250252
*/
251253
// $FlowExpectedError[unsupported-syntax]
254+
// $FlowFixMe[illegal-key]
252255
[INTERNAL_DISPATCH_METHOD_KEY](
253256
event: Event,
254257
rethrowListenerErrors?: boolean,

packages/react-native/src/private/webapis/dom/nodes/ReactNativeElement.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ class ReactNativeElement extends ReadOnlyElement {
286286
// avoids the `getEventTypePropName(eventType, isCapture)` hash lookup per
287287
// ancestor per phase.
288288
// $FlowExpectedError[unsupported-syntax]
289+
// $FlowFixMe[illegal-key]
289290
[EVENT_TARGET_GET_DECLARATIVE_LISTENER_KEY](
290291
event: Event,
291292
isCapture: boolean,

0 commit comments

Comments
 (0)