diff --git a/packages/babel-parser/typings/babel-parser.d.ts b/packages/babel-parser/typings/babel-parser.d.ts index 7a9d0ebab10e..58d528714953 100644 --- a/packages/babel-parser/typings/babel-parser.d.ts +++ b/packages/babel-parser/typings/babel-parser.d.ts @@ -136,6 +136,7 @@ export type ParserPlugin = export type ParserPluginWithOptions = ['decorators', DecoratorsPluginOptions] | ['pipelineOperator', PipelineOperatorPluginOptions] | + ['recordAndTuple', RecordAndTuplePluginOptions] | ['flow', FlowPluginOptions]; export interface DecoratorsPluginOptions { @@ -143,7 +144,11 @@ export interface DecoratorsPluginOptions { } export interface PipelineOperatorPluginOptions { - proposal: 'minimal' | 'smart'; + proposal: 'fsharp' | 'minimal' | 'smart'; +} + +export interface RecordAndTuplePluginOptions { + syntaxType: 'bar' | 'hash' } export interface FlowPluginOptions {