alexk111 / alexk111/node-red-node-typescript-starter

node-red runtime types

Open
#6 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Mustache
Stars
90
Forks
14
PR merge metrics
No merged PRs in 30d

Description

hi @alexk111
I believe you have contributed to node-red types in DefinitelyTyped
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/2026ab9fbd33457124a0a6a55d5c1d1e3f696764/types/node-red__runtime/index.d.ts

I was trying to use it in my project but I noticed that the core function createNode does not exist on the type. it should exist under runtime
https://github.com/node-red/node-red/blob/master/packages/node_modules/%40node-red/runtime/lib/nodes/index.js

I am not sure how to generate those types myself but they are useful and I was experimenting of embedding node-red with another application , etc.

can you please advise or let me know how to go about generating those types myself for node-red runtime ?

Thanks !!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the DefinitelyTyped declaration at types/node-red__runtime/index.d.ts and compare it with Node-RED's packages/node_modules/@node-red/runtime/lib/nodes/index.js. Determine how the runtime's createNode function should be represented under runtime, then verify that the declaration exposes it accurately.

Written by the indexing model from the issue text.

Assessment

Tech stack
nodejs, typescript
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.