You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/reference/sdks/frontend/index.md
+43-3Lines changed: 43 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -628,6 +628,10 @@ If the request has not yet been saved in the database, the id will be undefined.
628
628
629
629
> **raw**: `string`
630
630
631
+
###### request.streamId?
632
+
633
+
> `optional`**streamId**: [`ID`](index.md#id-3)
634
+
631
635
##### selection
632
636
633
637
> **selection**: `string`
@@ -698,6 +702,10 @@ The request that is associated with the response.
698
702
699
703
> **query**: `string`
700
704
705
+
###### request.streamId?
706
+
707
+
> `optional`**streamId**: [`ID`](index.md#id-3)
708
+
701
709
##### response
702
710
703
711
> **response**: `object`
@@ -751,11 +759,11 @@ Register a command.
751
759
| Parameter | Type | Description |
752
760
| ------ | ------ | ------ |
753
761
|`id`|[`CommandID`](index.md#commandid)| The id of the command. |
754
-
|`options`|\{`group`: `string`; `name`: `string`; `run`: (`context`: [`CommandContext`](index.md#commandcontext)) => `void`; `when`: (`context`: [`CommandContext`](index.md#commandcontext)) => `boolean`; \}| Options for the command. |
762
+
|`options`|\{`group`: `string`; `name`: `string`; `run`: (`context`: [`CommandContext`](index.md#commandcontext)) => `Promise`\<`void`\>\|`void`; `when`: (`context`: [`CommandContext`](index.md#commandcontext)) =>`Promise`\<`boolean`\>\|`boolean`; \}| Options for the command. |
755
763
|`options.group`? |`string`| The group this command belongs to. |
756
764
|`options.name`|`string`| The name of the command. |
757
-
|`options.run`| (`context`: [`CommandContext`](index.md#commandcontext)) => `void`| The function to run when the command is executed. |
758
-
|`options.when`? | (`context`: [`CommandContext`](index.md#commandcontext)) => `boolean`| A function to determine if the command is available. |
765
+
|`options.run`| (`context`: [`CommandContext`](index.md#commandcontext)) => `Promise`\<`void`\>\|`void`| The function to run when the command is executed. |
766
+
|`options.when`? | (`context`: [`CommandContext`](index.md#commandcontext)) => `Promise`\<`boolean`\>\|`boolean`| A function to determine if the command is available. |
759
767
760
768
###### Returns
761
769
@@ -1380,6 +1388,38 @@ Utilities to interact with the HTTP History page.
0 commit comments