n8n-nodes-base
Version:
Base nodes of n8n
25 lines (22 loc) • 537 B
text/typescript
/**
* Switch Node - Version 2
* Discriminator: mode=expression
*/
/** Expression decides how to route data */
export type SwitchV2ExpressionParams = {
mode: 'expression';
/**
* The index of output to which to send data to
*/
output?: string | Expression<string> | PlaceholderValue;
/**
* Amount of outputs to create
* @default 4
*/
outputsAmount?: number | Expression<number>;
};
export type SwitchV2ExpressionNode = {
type: 'n8n-nodes-base.switch';
version: 2;
config: NodeConfig<SwitchV2ExpressionParams>;
};