mirror of https://github.com/node-red/node-red.git
add clone option to linkcall function parameters
parent
ef4f6b3bc1
commit
48724cd3e2
|
|
@ -954,6 +954,7 @@ RED.editor.codeEditor.monaco = (function() {
|
|||
* @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:
|
||||
|
|
@ -971,7 +972,7 @@ RED.editor.codeEditor.monaco = (function() {
|
|||
* return result; // return new result object
|
||||
* \`\`\`
|
||||
*/
|
||||
static linkcall(target: ${targets}, msg: object, options?: { timeout?: number; [key: string]: any }): Promise<object>;
|
||||
static linkcall(target: ${targets}, msg: object, options?: { timeout?: number; clone?: boolean; [key: string]: any }): Promise<object>;
|
||||
// #endregion:linkcall
|
||||
`
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue