Skip redundant reparsing when translating Flow defs to TS defs (#49840)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49840

Changelog: [Internal]

Reviewed By: huntie

Differential Revision: D70620551

fbshipit-source-id: d526c1de733f19ab6106ae586632709fd1a389dc
This commit is contained in:
Iwo Plaza
2025-03-05 05:39:22 -08:00
committed by Facebook GitHub Bot
parent f5feb73022
commit dc689aa415
@@ -65,7 +65,7 @@ async function translateSourceFile(
);
// Translate to TypeScript defs
const tsDefResult = await translate.translateFlowToTSDef(
const tsDefResult = await translate.translateFlowDefToTSDef(
flowDefResult,
prettierOptions,
);