n8n-nodes-base
Version:
Base nodes of n8n
38 lines (35 loc) • 965 B
text/typescript
/**
* Merge Node - Version 3
* Discriminator: mode=chooseBranch
*/
/** Output data from a specific branch, without modifying it */
export type MergeV3ChooseBranchParams = {
mode: 'chooseBranch';
/**
* The number of data inputs you want to merge. The node waits for all connected inputs to be executed.
* @default 2
*/
numberInputs?: 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
/**
* Output Type
* @default waitForAll
*/
chooseBranchMode?: 'waitForAll' | Expression<string>;
/**
* Output
* @displayOptions.show { chooseBranchMode: ["waitForAll"] }
* @default specifiedInput
*/
output?: 'specifiedInput' | 'empty' | Expression<string>;
/**
* The number of the input to use data of
* @displayOptions.show { output: ["specifiedInput"] }
* @default 1
*/
useDataOfInput?: string | Expression<string>;
};
export type MergeV3ChooseBranchNode = {
type: 'n8n-nodes-base.merge';
version: 3;
config: NodeConfig<MergeV3ChooseBranchParams>;
};