From d8b53ee808c92886c5555bd7e1a2524c063e341c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Fri, 6 Nov 2020 14:02:48 -0500 Subject: [PATCH] Add typings for recordAndTuple plugin --- packages/babel-parser/typings/babel-parser.d.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 {