add jsdoc

This commit is contained in:
bracesproul
2024-11-18 16:32:32 -08:00
parent d87c0d4d53
commit f00c0515e7
+9
View File
@@ -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[];
}