import { MultiTargetCode } from "./MultiTargetCode"; import { SourceNodeCode } from "./SourceNodeCode"; export interface CodeNode { /** Uniquely identifies the node in its module. */ id: string; /** Identifies the node to user & is not unique. */ name: string; dependencies: Array; /** User-provided description of the source node. */ description: string; /** Name of a CRANQ module the node belongs to. */ module: string; /** * Enumeration of input port names, or code expression that evaluates * to them. */ inputNames: MultiTargetCode | Array; /** * Enumeration of output port names, or code expression that evaluates * to them. */ outputNames: MultiTargetCode | Array; /** List of properties that make up the node's state. */ /** List of properties that make up the node's state. */ stateProperties: Array;//PARAMETERS /** Code that implements the node. */ code: SourceNodeCode; /** TODO: Should be in graph representation only. */ errors?: { [code: string]: true }; }