From e5c03bacacabc2f273e3b27218014f4d23ee6b65 Mon Sep 17 00:00:00 2001 From: sd0ric4 <1286518974@qq.com> Date: Thu, 27 Mar 2025 11:33:12 +0800 Subject: [PATCH] feat: Extend UserSelectInteractive and UserInputInteractive types to inherit from InteractiveBasicType --- .../core/workflow/template/system/interactive/type.d.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/global/core/workflow/template/system/interactive/type.d.ts b/packages/global/core/workflow/template/system/interactive/type.d.ts index cf7485f5d..5600ddfa4 100644 --- a/packages/global/core/workflow/template/system/interactive/type.d.ts +++ b/packages/global/core/workflow/template/system/interactive/type.d.ts @@ -41,7 +41,7 @@ type InteractiveBasicType = { }; }; -type UserSelectInteractive = { +type UserSelectInteractive = InteractiveBasicType & { type: 'userSelect'; params: { description: string; @@ -50,7 +50,7 @@ type UserSelectInteractive = { }; }; -type UserInputInteractive = { +type UserInputInteractive = InteractiveBasicType & { type: 'userInput'; params: { description: string; @@ -58,6 +58,5 @@ type UserInputInteractive = { submitted?: boolean; }; }; - export type InteractiveNodeResponseType = UserSelectInteractive | UserInputInteractive; export type WorkflowInteractiveResponseType = InteractiveBasicType & InteractiveNodeResponseType;