Add TypeScript Intellisense to n8n Code Nodes with JSDoc

Demonstrates a simple JSDoc pattern for TypeScript-like autocomplete in n8n Code nodes, enabling faster coding of complex automations with full property suggestions.

n8n
Add TypeScript Intellisense to n8n Code Nodes with JSDoc

This workflow serves as a template to add TypeScript Intellisense support to n8n Code nodes using JSDoc comments. It fetches the current workflow data via the n8n API and processes it in a Code node where custom types (Workflow and Node) are defined with JSDoc typedefs. By casting input data to these types, developers gain autocomplete for properties like id, name, nodes array, and more, mimicking TypeScript behavior in the n8n editor.

The benefits are significant for productivity: reduced typing errors, quicker development of intricate logic, and better exploration of n8n's data structures without constant referencing docs. It transforms vague JavaScript coding into a typed, IDE-friendly experience directly in n8n.

Ideal use cases include self-referential workflows (e.g., analyzing or modifying own structure), complex data manipulations requiring workflow context, custom integrations, or any Code node handling $input.json from n8n nodes. Copy the JSDoc pattern into your own Code nodes for instant Intellisense on common objects like $workflow, $execution, or custom classes.

This lightweight demo (2 nodes) empowers advanced n8n users, saving hours in debugging and prototyping sophisticated automations.

$6.99
Last updated October 3, 2026
30-day money-back guarantee
Instant download
Lifetime updates included

New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.

Secure checkout powered by Stripe

Support

How to import this workflow into n8n

  1. 1Purchase or download the workflow to get the n8n workflow JSON file.
  2. 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
  3. 3Open each node marked with a credential warning and connect your own accounts and API keys.
  4. 4Run the workflow once manually to verify the data flow, then toggle it to Active.

Related Finance workflows

More from BestWorkflows

Need this deployed? We'll set it up for you.

Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.