Skip to content

Commit

Permalink
Add typings for recordAndTuple parser plugin (#12326)
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Nov 9, 2020
1 parent 089c200 commit d7e32d8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/babel-parser/typings/babel-parser.d.ts
Expand Up @@ -142,14 +142,19 @@ export type ParserPlugin =
export type ParserPluginWithOptions =
| ["decorators", DecoratorsPluginOptions]
| ["pipelineOperator", PipelineOperatorPluginOptions]
| ["recordAndTuple", RecordAndTuplePluginOptions]
| ["flow", FlowPluginOptions];

export interface DecoratorsPluginOptions {
decoratorsBeforeExport?: boolean;
}

export interface PipelineOperatorPluginOptions {
proposal: "minimal" | "smart";
proposal: "fsharp" | "minimal" | "smart";
}

export interface RecordAndTuplePluginOptions {
syntaxType: "bar" | "hash";
}

export interface FlowPluginOptions {
Expand Down

0 comments on commit d7e32d8

Please sign in to comment.