N8n-core vs n8n-workflow

Describe the issue/error/question

When creating nodes I’m not sure which interfaces should I import from n8n-core and which from n8n-workflow. It seems to work both ways and I usually import just IExecuteFunctions from n8n-core. But would there be any difference I change that?

Information on your n8n setup

  • n8n version: 0.175.1
  • Database you’re using (default: SQLite): SQLite
  • Running n8n with the execution process [own(default), main]: own
  • Running n8n via [Docker, npm, n8n.cloud, desktop app]: docker/npm

Hey @valya, I checked on this internally and you’d typically want to use the one from core as it extends the one from workflow.

Thus only the core one would offer all of the methods under helpers and allow the linter to do it’s magic (and would your IDE display all the available methods along with each method expects and return).

1 Like

Thank you @MutedJam !

1 Like