UNPKG

1e14

Version:

Minimal API for building function graphs

9 lines (8 loc) 401 B
import { InPorts, Node, Outputs } from "../types"; /** * Creates a node based on the specified output port names and input port * collection generator function. * @param outFields List of output port names. * @param createInPorts Creates a set of input ports. */ export declare function createNode<I, O>(outFields: Array<keyof O>, createInPorts: (outputs: Outputs<O>) => InPorts<I>): Node<I, O>;