We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb69456 commit c711244Copy full SHA for c711244
typescript/scripting-api/index.d.ts
@@ -88,12 +88,13 @@ declare namespace WoT {
88
value(): Promise<DataSchemaValue>;
89
}
90
91
- export enum ActionStatus { "running", "success", "error" }
92
-
93
export interface ActionInteractionOutput extends InteractionOutput {
94
error?: Error;
95
- status(): Promise<ActionStatus>
96
- cancel(): Promise<void>
+ // query the status of a running action
+ query(options?: InteractionOptions): Promise<InteractionOutput>
+ // cancel a pending/running action
+ cancel(options?: InteractionOptions): Promise<void>
97
+ // Note: value() function will only work after completed state has been reached
98
99
100
export interface Subscription {
0 commit comments