Fix some babel types that did not exist

Reviewed By: davidaurelio

Differential Revision: D7288340

fbshipit-source-id: 477b95e8dc543e643b823a55e9d7157e2a5bf18a
This commit is contained in:
Peter van der Zee 2018-03-15 09:38:16 -07:00 committed by Facebook Github Bot
parent 9185eeb04b
commit 9ca07d83c5
1 changed files with 3 additions and 1 deletions

View File

@ -117,6 +117,7 @@ type GeneratorResult = {
type VisitFn = <State>(path: Object, state: State) => any; type VisitFn = <State>(path: Object, state: State) => any;
type BabelTypes = {[key: string]: Function}; type BabelTypes = {[key: string]: Function};
type BabelVisitor = {};
declare module 'babel-core' { declare module 'babel-core' {
declare type Plugins = _Plugins; declare type Plugins = _Plugins;
@ -204,7 +205,7 @@ type BabelCoreOptions = {|
moduleRoot?: string, moduleRoot?: string,
only?: ?(string | Array<string> | RegExp | Array<string | RegExp>), only?: ?(string | Array<string> | RegExp | Array<string | RegExp>),
parserOpts?: ?Babylon7Options, parserOpts?: ?Babylon7Options,
plugins?: Array<BabelPlugin>, plugins?: _Plugins,
presets?: Array<string>, presets?: Array<string>,
retainLines?: boolean, retainLines?: boolean,
shouldPrintComment?: ?(string) => boolean, shouldPrintComment?: ?(string) => boolean,
@ -278,6 +279,7 @@ type void_DO_NOT_USE_SYNC = void;
declare module '@babel/core' { declare module '@babel/core' {
declare type Ast = BabelNode; declare type Ast = BabelNode;
declare type BabelSourceMap = _BabelSourceMap; declare type BabelSourceMap = _BabelSourceMap;
declare type Plugins = _Plugins;
declare type TransformResult = Transform7Result; declare type TransformResult = Transform7Result;
// use @babel/types instead! // use @babel/types instead!