From 39e7ee6e651c73dba1eb68fea52a8a14e7814cc0 Mon Sep 17 00:00:00 2001 From: James DiGioia Date: Sun, 22 Jul 2018 18:55:12 -0400 Subject: [PATCH] Switch Pipeline types to extend NodeBase This doesn't work because the `type` values are not compatible. --- packages/babel-parser/src/types.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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, };