add clone option to linkcall function parameters

function-call-subroutines
Steve-Mcl 2026-02-23 09:19:16 +00:00
parent 48724cd3e2
commit 52bb86581e
1 changed files with 3 additions and 1 deletions

View File

@ -65,6 +65,8 @@ declare class node {
* @param {Object} msg - the message object to pass to the subroutine
* @param {Object} [options] - call options
* @param {number} [options.timeout=5000] - the maximum time to wait for a response (default: 5000ms)
* @param {boolean} [options.clone=true] - flag to indicate if the message should be cloned (default: true)
*
* @return {Promise<Object>} - resolves with the returned message
*
* @example Call "greeting-person" subroutine by name:
@ -83,7 +85,7 @@ declare class node {
* return result; // return new result object
* ```
*/
static linkcall(target: string, msg: object, options?: { timeout?: number; [key: string]: any }): Promise<object>;
static linkcall(target: string, msg: object, options?: { timeout?: number; clone?: boolean; [key: string]: any }): Promise<object>;
// #endregion:linkcall
/** the id of this node */
public static readonly id:string;