node-red-node-typescript-starter icon indicating copy to clipboard operation
node-red-node-typescript-starter copied to clipboard

node-red runtime types

Open nileio opened this issue 3 years ago • 0 comments

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 !!

nileio avatar Jun 21 '22 07:06 nileio