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 0641a15 commit cd85b4d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/babel-parser/typings/babel-parser.d.ts
Expand Up @@ -136,6 +136,7 @@ export type ParserPlugin =
export type ParserPluginWithOptions =
['decorators', DecoratorsPluginOptions] |
['pipelineOperator', PipelineOperatorPluginOptions] |
['recordAndTuple', RecordAndTuplePluginOptions] |
['flow', FlowPluginOptions];

export interface DecoratorsPluginOptions {
Expand All @@ -146,6 +147,10 @@ export interface PipelineOperatorPluginOptions {
proposal: 'minimal' | 'smart';
}

export interface RecordAndTuplePluginOptions {
syntaxType: 'bar' | 'hash'
}

export interface FlowPluginOptions {
all?: boolean;
}

0 comments on commit cd85b4d

Please sign in to comment.