@tokens-studio/graph-engine
Version:
An execution engine to handle Token Studios generators and resolvers
22 lines • 1 kB
TypeScript
import { Graph } from '../../graph/graph.js';
import { IDeserializeOpts, SerializedGraph, SerializedNode } from '../../graph/types.js';
import { INodeDefinition, ISubgraphContainer, Node } from '../../programmatic/node.js';
export interface SerializedSubgraphNode extends SerializedNode {
innergraph: SerializedGraph;
}
export interface ISubgraphNode extends INodeDefinition {
innergraph?: Graph;
}
export default class SubgraphNode extends Node implements ISubgraphContainer {
static readonly title = "Subgraph";
static readonly type = "studio.tokens.generic.subgraph";
static readonly description = "Allows you to run another subgraph internally";
_innerGraph: Graph;
constructor(props: ISubgraphNode);
getSubgraphs(): Graph[];
getGraphProperties(): Record<string, Graph | undefined>;
serialize(): SerializedSubgraphNode;
static deserialize(opts: IDeserializeOpts): Promise<SubgraphNode>;
execute(): Promise<void>;
}
//# sourceMappingURL=subgraph.d.ts.map