n8n/packages/nodes-base/nodes/NoOp/NoOp.node.ts
Elias Meire 600013a1ab
feat: Add support for dark mode node icons and colors (#9412)
Co-authored-by: Giulio Andreini <g.andreini@gmail.com>
2024-06-06 13:34:30 +02:00

32 lines
649 B
TypeScript

import type {
IExecuteFunctions,
INodeExecutionData,
INodeType,
INodeTypeDescription,
} 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: ['main'],
outputs: ['main'],
properties: [],
};
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
const items = this.getInputData();
return [items];
}
}