Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxingbaoyu committed Nov 1, 2022
1 parent d683787 commit 566d380
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/babel-parser/typings/babel-parser.d.ts
Expand Up @@ -206,6 +206,8 @@ interface ParserOptions {
createParenthesizedExpressions?: boolean;
}

type ParserPlugin = PluginConfig;


declare const tokTypes: {
// todo(flow->ts) real token type
Expand All @@ -221,4 +223,4 @@ type ParseResult<Result> = Result & {
errors: ParseError[];
};

export { DecoratorsPluginOptions, FlowPluginOptions, ParseError, ParserOptions, PluginConfig as ParserPlugin, ParserPluginWithOptions, PipelineOperatorPluginOptions, RecordAndTuplePluginOptions, TypeScriptPluginOptions, parse, parseExpression, tokTypes };
export { DecoratorsPluginOptions, FlowPluginOptions, ParseError, ParserOptions, ParserPlugin, ParserPluginWithOptions, PipelineOperatorPluginOptions, RecordAndTuplePluginOptions, TypeScriptPluginOptions, parse, parseExpression, tokTypes };
3 changes: 2 additions & 1 deletion packages/babel-parser/typings/babel-parser.source.d.ts
Expand Up @@ -125,8 +125,9 @@ export interface ParserOptions {
createParenthesizedExpressions?: boolean;
}

export type ParserPlugin = import("../src/typings").PluginConfig;

export type {
PluginConfig as ParserPlugin,
ParserPluginWithOptions,
DecoratorsPluginOptions,
PipelineOperatorPluginOptions,
Expand Down

0 comments on commit 566d380

Please sign in to comment.