feat: Add proper INodeTypes polyfill for Task Runner (no-changelog) (#11333)

This commit is contained in:
Val
2024-10-22 15:19:32 +01:00
committed by GitHub
parent 00a48b781e
commit cade9b2d91
9 changed files with 202 additions and 21 deletions

View File

@@ -7,7 +7,6 @@ import {
import type {
CodeExecutionMode,
INode,
INodeType,
ITaskDataConnections,
IWorkflowExecuteAdditionalData,
WorkflowParameters,
@@ -129,17 +128,7 @@ export class JsTaskRunner extends TaskRunner {
const workflowParams = allData.workflow;
const workflow = new Workflow({
...workflowParams,
nodeTypes: {
getByNameAndVersion() {
return undefined as unknown as INodeType;
},
getByName() {
return undefined as unknown as INodeType;
},
getKnownTypes() {
return {};
},
},
nodeTypes: this.nodeTypes,
});
const customConsole = {