Open linonetwo opened 11 months ago
Why this, can you just replace all inports
to inPorts
so this is compatible with noflo (which has ts typing?)
Who is sending this?
Anyone knows? I need to find ts type for componentForLibrary
's input, it is not Component
from import { Component } from 'noflo';
which only have icon
and description
but no inPorts
Seem to be this https://github.com/noflo/noflo-runtime-base/blob/36ff1a439e1df9ad7611afd3cda908cce9e14fe2/src/protocol/Component.js#L202-L209
runtime:components
is no used anywhere, only runtime:component
is used and is send from here.
This is wrong
the component from getComponent()
is really a class Component extends EventEmitter
, so can't use componentForLibrary
on it.
only
inPorts
andoutPorts
exists on component, noinports
, soinports
is undefined.I get library by this, there is no doc on this, I read the source to learn this:
So library constructed from noflo's
new ComponentLoader().listComponents()[0].getComponent()
is not assignable to<TheGraph.App />
?