diff --git a/packages/babel-parser/typings/babel-parser.d.ts b/packages/babel-parser/typings/babel-parser.d.ts index 752fc365f0..b3f745f61a 100644 --- a/packages/babel-parser/typings/babel-parser.d.ts +++ b/packages/babel-parser/typings/babel-parser.d.ts @@ -106,4 +106,22 @@ export type ParserPlugin = 'optionalCatchBinding' | 'throwExpressions' | 'pipelineOperator' | - 'nullishCoalescingOperator'; + 'nullishCoalescingOperator' | + ParserPluginWithOptions; + +export type ParserPluginWithOptions = + ['decorators', DecoratorsPluginOptions] | + ['pipelineOperator', PipelineOperatorPluginOptions] | + ['flow', FlowPluginOptions]; + +export interface DecoratorsPluginOptions { + decoratorsBeforeExport?: boolean; +} + +export interface PipelineOperatorPluginOptions { + proposal: 'minimal' | 'smart'; +} + +export interface FlowPluginOptions { + all?: boolean; +}