From 52bb86581eb4bc5d82c32f67252d4c67f47a2552 Mon Sep 17 00:00:00 2001 From: Steve-Mcl Date: Mon, 23 Feb 2026 09:19:16 +0000 Subject: [PATCH] add clone option to linkcall function parameters --- .../@node-red/editor-client/src/types/node-red/func.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/editor-client/src/types/node-red/func.d.ts b/packages/node_modules/@node-red/editor-client/src/types/node-red/func.d.ts index 2aaa7ae36..230dca26e 100644 --- a/packages/node_modules/@node-red/editor-client/src/types/node-red/func.d.ts +++ b/packages/node_modules/@node-red/editor-client/src/types/node-red/func.d.ts @@ -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} - 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; + static linkcall(target: string, msg: object, options?: { timeout?: number; clone?: boolean; [key: string]: any }): Promise; // #endregion:linkcall /** the id of this node */ public static readonly id:string;