mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-28 22:19:41 -08:00
33 lines
734 B
TypeScript
33 lines
734 B
TypeScript
import type {
|
|
IExecuteFunctions,
|
|
INodeExecutionData,
|
|
INodeType,
|
|
INodeTypeDescription,
|
|
} from 'n8n-workflow';
|
|
import { NodeConnectionType } 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: [NodeConnectionType.Main],
|
|
outputs: [NodeConnectionType.Main],
|
|
properties: [],
|
|
};
|
|
|
|
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
|
|
const items = this.getInputData();
|
|
|
|
return [items];
|
|
}
|
|
}
|