You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/core/Graph.ts
+33-10
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@ export type GraphNodeProperties = {
19
19
[key:string]:any
20
20
},
21
21
__args?:any[],//can structure input arguments, include '__result' when generically calling operators for where to pass the original input in in a set of arguments
22
+
__callable?:boolean,//we can have the graphnode return itself as a callable function with private properties
22
23
[key:string]:any
23
24
}
24
25
@@ -85,9 +86,8 @@ export class Callable extends Function {
85
86
86
87
}
87
88
88
-
89
89
//this is a scope
90
-
exportclassGraphNodeextendsCallable{
90
+
exportclassGraphNode{
91
91
92
92
__node:{
93
93
tag:string,
@@ -114,9 +114,35 @@ export class GraphNode extends Callable {
114
114
[key:string]:any
115
115
116
116
//pass GraphNodeProperties, functions, or tags of other nodes
0 commit comments