Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export class AbortController {
* Initialize this controller.
*/
// $FlowExpectedError[unsupported-syntax]
// $FlowFixMe[illegal-key]
[SIGNAL_KEY]: AbortSignal;

constructor() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,10 @@ export class AbortSignal extends EventTarget {
}

// $FlowExpectedError[unsupported-syntax]
// $FlowFixMe[illegal-key]
[ABORTED_KEY]: boolean = false;
// $FlowExpectedError[unsupported-syntax]
// $FlowFixMe[illegal-key]
[REASON_KEY]: unknown;

/**
Expand Down
8 changes: 8 additions & 0 deletions packages/react-native/src/private/webapis/dom/events/Event.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,27 +71,35 @@ export default class Event {
_timeStamp: number;

// $FlowExpectedError[unsupported-syntax]
// $FlowFixMe[illegal-key]
[COMPOSED_PATH_KEY]: boolean = [];

// $FlowExpectedError[unsupported-syntax]
// $FlowFixMe[illegal-key]
[CURRENT_TARGET_KEY]: EventTarget | null = null;

// $FlowExpectedError[unsupported-syntax]
// $FlowFixMe[illegal-key]
[EVENT_PHASE_KEY]: boolean = Event.NONE;

// $FlowExpectedError[unsupported-syntax]
// $FlowFixMe[illegal-key]
[IN_PASSIVE_LISTENER_FLAG_KEY]: boolean = false;

// $FlowExpectedError[unsupported-syntax]
// $FlowFixMe[illegal-key]
[IS_TRUSTED_KEY]: boolean = false;

// $FlowExpectedError[unsupported-syntax]
// $FlowFixMe[illegal-key]
[STOP_IMMEDIATE_PROPAGATION_FLAG_KEY]: boolean = false;

// $FlowExpectedError[unsupported-syntax]
// $FlowFixMe[illegal-key]
[STOP_PROPAGATION_FLAG_KEY]: boolean = false;

// $FlowExpectedError[unsupported-syntax]
// $FlowFixMe[illegal-key]
[TARGET_KEY]: EventTarget | null = null;

constructor(type: string, options?: ?EventInit) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ export default class EventTarget {
* which is `AT_TARGET` during both passes through the target node.
*/
// $FlowExpectedError[unsupported-syntax]
// $FlowFixMe[illegal-key]
[EVENT_TARGET_GET_DECLARATIVE_LISTENER_KEY](
event: Event,
isCapture: boolean,
Expand All @@ -239,6 +240,7 @@ export default class EventTarget {
* (see https://dom.spec.whatwg.org/#get-the-parent).
*/
// $FlowExpectedError[unsupported-syntax]
// $FlowFixMe[illegal-key]
[EVENT_TARGET_GET_THE_PARENT_KEY](): EventTarget | null {
return null;
}
Expand All @@ -249,6 +251,7 @@ export default class EventTarget {
* canceled (i.e. `event.defaultPrevented`), otherwise `true`.
*/
// $FlowExpectedError[unsupported-syntax]
// $FlowFixMe[illegal-key]
[INTERNAL_DISPATCH_METHOD_KEY](
event: Event,
rethrowListenerErrors?: boolean,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ class ReactNativeElement extends ReadOnlyElement {
// avoids the `getEventTypePropName(eventType, isCapture)` hash lookup per
// ancestor per phase.
// $FlowExpectedError[unsupported-syntax]
// $FlowFixMe[illegal-key]
[EVENT_TARGET_GET_DECLARATIVE_LISTENER_KEY](
event: Event,
isCapture: boolean,
Expand Down
Loading