Skip to content

Commit

Permalink
Add typings for recordAndTuple plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung authored and nicolo-ribaudo committed Nov 9, 2020
1 parent 089c200 commit ec88eb8
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 ec88eb8

Please sign in to comment.