n8n/packages/nodes-base/nodes/NoOp/NoOp.node.ts

27 lines
647 B
TypeScript
Raw Normal View History

2019-06-23 03:35:23 -07:00
import { IExecuteFunctions } from 'n8n-core';
import { INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
2019-06-23 03:35:23 -07:00
export class NoOp implements INodeType {
description: INodeTypeDescription = {
displayName: 'No Operation, do nothing',
2019-06-23 03:35:23 -07:00
name: 'noOp',
icon: 'fa:arrow-right',
2019-06-23 03:35:23 -07:00
group: ['organization'],
version: 1,
description: 'No Operation',
defaults: {
name: 'NoOp',
color: '#b0b0b0',
},
inputs: ['main'],
outputs: ['main'],
properties: [],
2019-06-23 03:35:23 -07:00
};
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
2019-06-23 03:35:23 -07:00
const items = this.getInputData();
return this.prepareOutputData(items);
}
}