Skip to content

Commit 4b40048

Browse files
refactor: add InteractionInput and remove error
1 parent 63e84c8 commit 4b40048

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

typescript/scripting-api/index.d.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,11 @@ declare namespace WoT {
8989
}
9090

9191
export interface ActionInteractionOutput extends InteractionOutput {
92-
error?: Error;
9392
// query the status of a running action
94-
query(options?: InteractionOptions): Promise<InteractionOutput>
93+
query(params?: InteractionInput, options?: InteractionOptions): Promise<InteractionOutput>
9594
// cancel a pending/running action
96-
cancel(options?: InteractionOptions): Promise<void>
97-
// Note: value() function will only work after completed state has been reached
95+
cancel(params?: InteractionInput, options?: InteractionOptions): Promise<void>
96+
// Note: retrieving the result of the action via implicit InteractionOutput interface will only work after the action has been completed
9897
}
9998

10099
export interface Subscription {

0 commit comments

Comments
 (0)