Skip to content

Commit c711244

Browse files
refactor: reflect latest discussions
1 parent bb69456 commit c711244

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

typescript/scripting-api/index.d.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,13 @@ declare namespace WoT {
8888
value(): Promise<DataSchemaValue>;
8989
}
9090

91-
export enum ActionStatus { "running", "success", "error" }
92-
9391
export interface ActionInteractionOutput extends InteractionOutput {
9492
error?: Error;
95-
status(): Promise<ActionStatus>
96-
cancel(): Promise<void>
93+
// query the status of a running action
94+
query(options?: InteractionOptions): Promise<InteractionOutput>
95+
// cancel a pending/running action
96+
cancel(options?: InteractionOptions): Promise<void>
97+
// Note: value() function will only work after completed state has been reached
9798
}
9899

99100
export interface Subscription {

0 commit comments

Comments
 (0)