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 committed Nov 6, 2020
1 parent 3227914 commit d8b53ee
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 @@ -136,14 +136,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 d8b53ee

Please sign in to comment.