File size: 356 Bytes
78dc980
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
export type DSLComponents = Record<string, Operator>;

export interface DSL {
  components: DSLComponents;
  history: any[];
  path: string[];
  answer: any[];
}

export interface Operator {
  obj: OperatorNode;
  downstream: string[];
  upstream: string[];
}

export interface OperatorNode {
  component_name: string;
  params: Record<string, unknown>;
}