From ec88eb84b5a2bdf3782ac0677fcedb576fbce19f 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 044c81641f9c..d53210217a1f 100644 --- a/packages/babel-parser/typings/babel-parser.d.ts +++ b/packages/babel-parser/typings/babel-parser.d.ts @@ -142,6 +142,7 @@ export type ParserPlugin = export type ParserPluginWithOptions = | ["decorators", DecoratorsPluginOptions] | ["pipelineOperator", PipelineOperatorPluginOptions] + | ["recordAndTuple", RecordAndTuplePluginOptions] | ["flow", FlowPluginOptions]; export interface DecoratorsPluginOptions { @@ -149,7 +150,11 @@ export interface DecoratorsPluginOptions { } export interface PipelineOperatorPluginOptions { - proposal: "minimal" | "smart"; + proposal: "fsharp" | "minimal" | "smart"; +} + +export interface RecordAndTuplePluginOptions { + syntaxType: "bar" | "hash"; } export interface FlowPluginOptions {