Skip to content

Commit dee71ab

Browse files
refactor: move note on top of the interface declaration
1 parent 80722b1 commit dee71ab

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

index.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,6 +1289,10 @@ <h2>The <dfn>ActionInteractionOutput</dfn> interface</h2>
12891289
will allow cancelling asynchronous actions and query the status of a long running action.
12901290
</p>
12911291
<pre class="idl">
1292+
/**
1293+
* Note: retrieving the result of an action via the implicit InteractionOutput interface
1294+
* will only work after the action has been completed
1295+
*/
12921296
[SecureContext, Exposed=(Window,Worker)]
12931297
interface ActionInteractionOutput : InteractionOutput {
12941298
Promise&lt;InteractionOutput&gt; query(
@@ -1297,8 +1301,6 @@ <h2>The <dfn>ActionInteractionOutput</dfn> interface</h2>
12971301
Promise&lt;undefined&gt; cancel(
12981302
optional InteractionInput params = {},
12991303
optional InteractionOptions options = {});
1300-
// Note: retrieving the result of an action via the implicit InteractionOutput interface
1301-
// will only work after the action has been completed
13021304
};
13031305
</pre>
13041306

typescript/scripting-api/index.d.ts

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

91+
/**
92+
* Note: retrieving the result of an action via the implicit InteractionOutput interface will only work after the action has been completed
93+
*/
9194
export interface ActionInteractionOutput extends InteractionOutput {
9295
// query the status of a running action
9396
query(params?: InteractionInput, options?: InteractionOptions): Promise<InteractionOutput>
9497
// cancel a pending/running action
9598
cancel(params?: InteractionInput, options?: InteractionOptions): Promise<void>
96-
// Note: retrieving the result of an action via the implicit InteractionOutput interface will only work after the action has been completed
9799
}
98100

99101
export interface Subscription {

0 commit comments

Comments
 (0)