feat: Extend UserSelectInteractive and UserInputInteractive types to inherit from InteractiveBasicType
This commit is contained in:
@@ -41,7 +41,7 @@ type InteractiveBasicType = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
type UserSelectInteractive = {
|
type UserSelectInteractive = InteractiveBasicType & {
|
||||||
type: 'userSelect';
|
type: 'userSelect';
|
||||||
params: {
|
params: {
|
||||||
description: string;
|
description: string;
|
||||||
@@ -50,7 +50,7 @@ type UserSelectInteractive = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
type UserInputInteractive = {
|
type UserInputInteractive = InteractiveBasicType & {
|
||||||
type: 'userInput';
|
type: 'userInput';
|
||||||
params: {
|
params: {
|
||||||
description: string;
|
description: string;
|
||||||
@@ -58,6 +58,5 @@ type UserInputInteractive = {
|
|||||||
submitted?: boolean;
|
submitted?: boolean;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
export type InteractiveNodeResponseType = UserSelectInteractive | UserInputInteractive;
|
export type InteractiveNodeResponseType = UserSelectInteractive | UserInputInteractive;
|
||||||
export type WorkflowInteractiveResponseType = InteractiveBasicType & InteractiveNodeResponseType;
|
export type WorkflowInteractiveResponseType = InteractiveBasicType & InteractiveNodeResponseType;
|
||||||
|
|||||||
Reference in New Issue
Block a user