Skip to content

Commit

Permalink
add jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul committed Nov 19, 2024
1 parent d87c0d4 commit f00c051
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions libs/sdk-js/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,19 @@ export interface Send {
}

export interface Command {
/**
* An object to update the thread state with.
*/
update?: Record<string, unknown>;

/**
* The value to return from an `interrupt` function call.
*/
resume?: unknown;

/**
* A single, or array of `Send` commands to trigger nodes.
*/
send?: Send | Send[];
}

Expand Down

0 comments on commit f00c051

Please sign in to comment.