Skip to content

Commit

Permalink
pre-suppress Flow errors ahead of 153 release
Browse files Browse the repository at this point in the history
Reviewed By: panagosg7

Differential Revision: D28711953

fbshipit-source-id: c0f2a9c2c117bc127f09595eb17f39afdbb87095
  • Loading branch information
dsainati1 authored and facebook-github-bot committed May 27, 2021
1 parent d570322 commit 73468ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions runtime/shared/FbtResultBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,10 @@ class FbtResultBase implements IFbtResultBase {
for (let ii = 0; ii < contents.length; ++ii) {
const content = contents[ii];
if (Array.isArray(content)) {
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
result.push.apply(result, FbtResultBase.flattenToArray(content));
} else if (content instanceof FbtResultBase) {
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
result.push.apply(result, content.flattenToArray());
} else {
result.push(content);
Expand Down
1 change: 1 addition & 0 deletions runtime/shared/__tests__/fbt-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ describe('fbt', () => {
// flow thinks ReactDOM.findDOMNode can return a type of Text...
invariant(node instanceof Element, 'Expected node to be an Element');
const resultingElements = node.getElementsByTagName('div');
// $FlowFixMe[method-unbinding] added when improving typing for this parameters
return Array.prototype.slice.call(resultingElements, 0);
}

Expand Down

0 comments on commit 73468ad

Please sign in to comment.