Files
n8n-enterprise-unlocked/packages/nodes-base/nodes/NoOp/NoOp.node.ts
Alex Grozav 8215e0b59f refactor: Migrate NodeConnectionType to const object type (no-changelog) (#14078)
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
2025-03-21 14:01:26 +02:00

33 lines
737 B
TypeScript

import type {
IExecuteFunctions,
INodeExecutionData,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import { NodeConnectionTypes } from 'n8n-workflow';
export class NoOp implements INodeType {
description: INodeTypeDescription = {
displayName: 'No Operation, do nothing',
name: 'noOp',
icon: 'fa:arrow-right',
iconColor: 'gray',
group: ['organization'],
version: 1,
description: 'No Operation',
defaults: {
name: 'No Operation, do nothing',
color: '#b0b0b0',
},
inputs: [NodeConnectionTypes.Main],
outputs: [NodeConnectionTypes.Main],
properties: [],
};
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
const items = this.getInputData();
return [items];
}
}