diff --git a/packages/babel-parser/src/types.js b/packages/babel-parser/src/types.js index 7524c232b256..b658f7b0d715 100644 --- a/packages/babel-parser/src/types.js +++ b/packages/babel-parser/src/types.js @@ -571,22 +571,22 @@ export type PipelineBody = NodeBase & { type: "PipelineBody", }; -export type PipelineBareFunctionBody = PipelineBody & { +export type PipelineBareFunctionBody = NodeBase & { type: "PipelineBareFunctionBody", callee: Expression, }; -export type PipelineBareConstructorBody = PipelineBody & { +export type PipelineBareConstructorBody = NodeBase & { type: "PipelineBareConstructorBody", callee: Expression, }; -export type PipelineBareAwaitedFunctionBody = PipelineBody & { +export type PipelineBareAwaitedFunctionBody = NodeBase & { type: "PipelineBareAwaitedFunctionBody", callee: Expression, }; -export type PipelineTopicBody = PipelineBody & { +export type PipelineTopicBody = NodeBase & { type: "PipelineTopicBody", expression: Expression, };