Skip to content

Commit dc689aa

Browse files
iwoplazafacebook-github-bot
authored andcommitted
Skip redundant reparsing when translating Flow defs to TS defs (facebook#49840)
Summary: Pull Request resolved: facebook#49840 Changelog: [Internal] Reviewed By: huntie Differential Revision: D70620551 fbshipit-source-id: d526c1de733f19ab6106ae586632709fd1a389dc
1 parent f5feb73 commit dc689aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/build/build-types/translateSourceFile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ async function translateSourceFile(
6565
);
6666

6767
// Translate to TypeScript defs
68-
const tsDefResult = await translate.translateFlowToTSDef(
68+
const tsDefResult = await translate.translateFlowDefToTSDef(
6969
flowDefResult,
7070
prettierOptions,
7171
);

0 commit comments

Comments
 (0)