Skip to content

Commit bd8b678

Browse files
Danny Sufacebook-github-bot
authored andcommitted
Deploy 0.241.0 to xplat
Summary: Original Author: [email protected] Original Git: 6772066 Original Reviewed By: SamChou19815 Original Revision: D59891129 X-link: facebook/react-native#45507 Changelog: [Internal] Reviewed By: neildhar Differential Revision: D61574248 fbshipit-source-id: 2fc5290e1bfff86dc1cb2bc0480c8fd20562c23f
1 parent 06d7087 commit bd8b678

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

tools/hermes-parser/js/flow-api-translator/src/TSDefToFlowDef.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,9 @@ const getTransforms = (originalCode: string, opts: TranslationOptions) => {
10581058
objectType: base,
10591059
indexType: constructFlowNode<FlowESTree.StringLiteralTypeAnnotation>({
10601060
type: 'StringLiteralTypeAnnotation',
1061+
// $FlowFixMe[incompatible-call]
10611062
value: name,
1063+
// $FlowFixMe[incompatible-type]
10621064
raw: `'${name}'`,
10631065
}),
10641066
});

tools/hermes-parser/js/hermes-eslint/__tests__/eslint-scope/get-declared-variables-test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,13 @@ describe('ScopeManager.prototype.getDeclaredVariables', () => {
5656
const expected = expectedNamesList.shift();
5757
const actual = scopeManager.getDeclaredVariables(node);
5858

59+
// $FlowFixMe[incompatible-use]
5960
expect(actual).toHaveLength(expected.length);
6061
if (actual.length > 0) {
6162
const end = actual.length - 1;
6263

6364
for (let i = 0; i <= end; i++) {
65+
// $FlowFixMe[incompatible-use]
6466
expect(actual[i].name).toEqual(expected[i]);
6567
}
6668
}

tools/hermes-parser/js/hermes-parser/src/babel/TransformESTreeToBabel.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,6 +1248,7 @@ export function transformProgram(
12481248
visitorKeys: FlowESTreeAndBabelVisitorKeys,
12491249
});
12501250

1251+
// $FlowFixMe[incompatible-type]
12511252
if (resultNode?.type === 'File') {
12521253
return resultNode;
12531254
}

0 commit comments

Comments
 (0)