mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 22:54:05 -08:00
b03e358a12
* 👕 Enable `consistent-type-imports` for nodes-base
* 👕 Apply to nodes-base
* ⏪ Undo unrelated changes
* 🚚 Move to `.eslintrc.js` in nodes-base
* ⏪ Revert "Enable `consistent-type-imports` for nodes-base"
This reverts commit 529ad72b05
.
* 👕 Fix severity
38 lines
997 B
TypeScript
38 lines
997 B
TypeScript
import type { IExecuteFunctions } from 'n8n-core';
|
||
import type { INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
|
||
|
||
export class Start implements INodeType {
|
||
description: INodeTypeDescription = {
|
||
displayName: 'Start',
|
||
name: 'start',
|
||
icon: 'fa:play',
|
||
group: ['input'],
|
||
version: 1,
|
||
description: 'Starts the workflow execution from this node',
|
||
maxNodes: 1,
|
||
hidden: true,
|
||
defaults: {
|
||
name: 'Start',
|
||
color: '#00e000',
|
||
},
|
||
// eslint-disable-next-line n8n-nodes-base/node-class-description-inputs-wrong-regular-node
|
||
inputs: [],
|
||
outputs: ['main'],
|
||
properties: [
|
||
{
|
||
displayName:
|
||
'This node is where a manual workflow execution starts. To make one, go back to the canvas and click ‘execute workflow’',
|
||
name: 'notice',
|
||
type: 'notice',
|
||
default: '',
|
||
},
|
||
],
|
||
};
|
||
|
||
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
|
||
const items = this.getInputData();
|
||
|
||
return this.prepareOutputData(items);
|
||
}
|
||
}
|