mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-16 01:24:05 -08:00
91d7e16c81
* 🔨 formatting nodes with prettier
27 lines
641 B
TypeScript
27 lines
641 B
TypeScript
import { IExecuteFunctions } from 'n8n-core';
|
|
import { INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
|
|
|
|
export class NoOp implements INodeType {
|
|
description: INodeTypeDescription = {
|
|
displayName: 'No Operation, do nothing',
|
|
name: 'noOp',
|
|
icon: 'fa:arrow-right',
|
|
group: ['organization'],
|
|
version: 1,
|
|
description: 'No Operation',
|
|
defaults: {
|
|
name: 'NoOp',
|
|
color: '#b0b0b0',
|
|
},
|
|
inputs: ['main'],
|
|
outputs: ['main'],
|
|
properties: [],
|
|
};
|
|
|
|
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
|
|
const items = this.getInputData();
|
|
|
|
return this.prepareOutputData(items);
|
|
}
|
|
}
|