@i2analyze/notebook-sdk 1.10.0-dev.20 → 1.10.0-dev.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2640,12 +2640,16 @@ export declare namespace commands {
|
|
|
2640
2640
|
/**
|
|
2641
2641
|
* Runs when the command is executed.
|
|
2642
2642
|
*
|
|
2643
|
-
* @
|
|
2644
|
-
*
|
|
2645
|
-
*
|
|
2643
|
+
* @remarks
|
|
2644
|
+
* For "records" and "application" commands, the single payload argument combines the base payload
|
|
2645
|
+
* for the command type with the {@link commands.ICommandInvocationContext} that describes where and
|
|
2646
|
+
* how the command was triggered. For "unscoped" commands the invocation context is the only
|
|
2647
|
+
* argument and is optional, so the callback can be defined and invoked with no arguments.
|
|
2648
|
+
* @param args - The command payload for "records" and "application" commands, or the optional
|
|
2649
|
+
* invocation context for "unscoped" commands, as determined by the command type.
|
|
2646
2650
|
* @i2since 1.0
|
|
2647
2651
|
*/
|
|
2648
|
-
onExecute(payload: CommandExecutePayloadMap[TCommandType]): void;
|
|
2652
|
+
onExecute(...args: TCommandType extends 'unscoped' ? [invocationContext?: CommandExecutePayloadMap['unscoped']] : [payload: CommandExecutePayloadMap[TCommandType]]): void;
|
|
2649
2653
|
/**
|
|
2650
2654
|
* Runs when an action derived from the command is surfaced, enabling the command to configure the action in response to events.
|
|
2651
2655
|
*
|