Skip to content

Commit

Permalink
Add Flow libdef for @babel/register (#38691)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #38691

Changelog: [Internal]

Reviewed By: motiz88

Differential Revision: D47835803

fbshipit-source-id: 05d8379568862ae882f950d22f3b922d91f0460c
  • Loading branch information
huntie authored and facebook-github-bot committed Jul 31, 2023
1 parent 6d5be26 commit aab5285
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions flow-typed/npm/babel_v7.x.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,8 @@ declare module '@babel/core' {
*/
only?: MatchPattern | Array<MatchPattern>,

extensions?: Array<string>,

// Source Map options

/**
Expand Down Expand Up @@ -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';

Expand Down

0 comments on commit aab5285

Please sign in to comment.