From aab52859a447a8257b106fe307008af218322e3d Mon Sep 17 00:00:00 2001 From: Alex Hunt Date: Mon, 31 Jul 2023 06:04:09 -0700 Subject: [PATCH] Add Flow libdef for @babel/register (#38691) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/38691 Changelog: [Internal] Reviewed By: motiz88 Differential Revision: D47835803 fbshipit-source-id: 05d8379568862ae882f950d22f3b922d91f0460c --- flow-typed/npm/babel_v7.x.x.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/flow-typed/npm/babel_v7.x.x.js b/flow-typed/npm/babel_v7.x.x.js index c0d9d133dd81c3..53953323b24040 100644 --- a/flow-typed/npm/babel_v7.x.x.js +++ b/flow-typed/npm/babel_v7.x.x.js @@ -734,6 +734,8 @@ declare module '@babel/core' { */ only?: MatchPattern | Array, + extensions?: Array, + // Source Map options /** @@ -1223,6 +1225,12 @@ declare module '@babel/generator' { ) => GeneratorResult; } +declare module '@babel/register' { + import type {BabelCoreOptions} from '@babel/core'; + + declare module.exports: (options?: BabelCoreOptions) => void; +} + declare module '@babel/template' { import type {Node, Statement, Expression, Program} from '@babel/types';