From cf961a286cf8a08f791336947070f6234d827ad8 Mon Sep 17 00:00:00 2001 From: Tat Dat Duong Date: Thu, 5 Dec 2024 17:14:07 +0100 Subject: [PATCH] fix(sdk-js): rename Command["send"] to `goto` --- libs/sdk-js/src/types.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/sdk-js/src/types.ts b/libs/sdk-js/src/types.ts index 0073c5962..6a668ef4c 100644 --- a/libs/sdk-js/src/types.ts +++ b/libs/sdk-js/src/types.ts @@ -40,9 +40,11 @@ export interface Command { resume?: unknown; /** - * A single, or array of `Send` commands to trigger nodes. + * Determine the next node to navigate to. Can be one of the following: + * - Name(s) of the node names to navigate to next. + * - `Send` command(s) to execute node(s) with provided input. */ - send?: Send | Send[]; + goto?: Send | Send[] | string | string[]; } interface RunsInvokePayload {