UNPKG

rete

Version:
38 lines (37 loc) 755 B
export declare type Connection = { node: number; data: any; }; export declare type InputConnection = Connection & { output: string; }; export declare type OutputConnection = Connection & { input: string; }; export declare type Input = { connections: InputConnection[]; }; export declare type Output = { connections: OutputConnection[]; }; export declare type Inputs = { [key: string]: Input; }; export declare type Outputs = { [key: string]: Output; }; export declare type Node = { id: number; name: string; inputs: Inputs; outputs: Outputs; data: any; position: number[]; }; export declare type Nodes = { [id: string]: Node; }; export declare type Data = { id: string; nodes: Nodes; };