Skip to content

Commit 9813ede

Browse files
committed
Flow upgrade to 0.188
ghstack-source-id: 5c359b9 Pull Request resolved: #25423
1 parent 3b6826e commit 9813ede

File tree

17 files changed

+24
-6
lines changed

17 files changed

+24
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"eslint-plugin-react-internal": "link:./scripts/eslint-rules",
6464
"fbjs-scripts": "1.2.0",
6565
"filesize": "^6.0.1",
66-
"flow-bin": "^0.185.0",
66+
"flow-bin": "^0.188.0",
6767
"glob": "^7.1.6",
6868
"glob-stream": "^6.1.0",
6969
"google-closure-compiler": "^20200517.0.0",

packages/react-devtools-core/src/editor.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ export function launchEditor(
173173
// There's an existing editor process already and it's attached
174174
// to the terminal, so go kill it. Otherwise two separate editor
175175
// instances attach to the stdin/stdout which gets confusing.
176+
// $FlowFixMe[incompatible-use] found when upgrading Flow
176177
childProcess.kill('SIGKILL');
177178
}
178179

packages/react-devtools-shared/src/backend/DevToolsComponentStackFrame.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ export function describeNativeComponentFrame(
121121
} catch (x) {
122122
control = x;
123123
}
124+
// $FlowFixMe[prop-missing] found when upgrading Flow
124125
fn.call(Fake.prototype);
125126
}
126127
} else {

packages/react-devtools-shell/src/app/DeeplyNestedComponents/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ function wrapWithHoc(Component, index) {
1818
// $FlowFixMe
1919
const displayName = Component.displayName || Component.name;
2020

21+
// $FlowFixMe[incompatible-type] found when upgrading Flow
2122
HOC.displayName = `withHoc${index}(${displayName})`;
2223
return HOC;
2324
}

packages/react-devtools-shell/src/app/InspectableElements/CustomHooks.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ function wrapWithHoc(Component) {
109109
}
110110
// $FlowFixMe
111111
const displayName = Component.displayName || Component.name;
112+
// $FlowFixMe[incompatible-type] found when upgrading Flow
112113
Hoc.displayName = `withHoc(${displayName})`;
113114
return Hoc;
114115
}

packages/react-dom-bindings/src/events/SyntheticEvent.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ function createSyntheticEvent(Interface: EventInterfaceType) {
8181
return this;
8282
}
8383

84+
// $FlowFixMe[prop-missing] found when upgrading Flow
8485
assign(SyntheticBaseEvent.prototype, {
8586
preventDefault: function() {
8687
this.defaultPrevented = true;

packages/react-dom/src/client/ReactDOMRoot.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ function ReactDOMRoot(internalRoot: FiberRoot) {
9494
this._internalRoot = internalRoot;
9595
}
9696

97+
// $FlowFixMe[prop-missing] found when upgrading Flow
9798
ReactDOMHydrationRoot.prototype.render = ReactDOMRoot.prototype.render = function(
9899
children: ReactNodeList,
99100
): void {
@@ -139,6 +140,7 @@ ReactDOMHydrationRoot.prototype.render = ReactDOMRoot.prototype.render = functio
139140
updateContainer(children, root, null, null);
140141
};
141142

143+
// $FlowFixMe[prop-missing] found when upgrading Flow
142144
ReactDOMHydrationRoot.prototype.unmount = ReactDOMRoot.prototype.unmount = function(): void {
143145
if (__DEV__) {
144146
if (typeof arguments[0] === 'function') {
@@ -260,6 +262,7 @@ function scheduleHydration(target: Node) {
260262
queueExplicitHydrationTarget(target);
261263
}
262264
}
265+
// $FlowFixMe[prop-missing] found when upgrading Flow
263266
ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = scheduleHydration;
264267

265268
export function hydrateRoot(

packages/react-pg/src/ReactPostgres.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ export function Pool(options: mixed) {
7777

7878
type NestedMap = Map<any, Record | NestedMap>;
7979

80+
// $FlowFixMe[prop-missing] found when upgrading Flow
8081
Pool.prototype.query = function(query: string, values?: Array<mixed>) {
8182
const pool = this.pool;
8283
const outerMap = unstable_getCacheForType(this.createRecordMap);

packages/react-reconciler/src/ReactFiberCommitWork.new.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,6 +1237,7 @@ function abortRootTransitions(
12371237
transitionInstance.pendingBoundaries !== null &&
12381238
transitionInstance.pendingBoundaries.has(deletedOffscreenInstance)
12391239
) {
1240+
// $FlowFixMe[incompatible-use] found when upgrading Flow
12401241
transitionInstance.pendingBoundaries.delete(
12411242
deletedOffscreenInstance,
12421243
);

packages/react-reconciler/src/ReactFiberCommitWork.old.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,6 +1237,7 @@ function abortRootTransitions(
12371237
transitionInstance.pendingBoundaries !== null &&
12381238
transitionInstance.pendingBoundaries.has(deletedOffscreenInstance)
12391239
) {
1240+
// $FlowFixMe[incompatible-use] found when upgrading Flow
12401241
transitionInstance.pendingBoundaries.delete(
12411242
deletedOffscreenInstance,
12421243
);

0 commit comments

Comments
 (0)