19 lines
574 B
TypeScript
19 lines
574 B
TypeScript
import { GetSchemes, ClassicPreset } from "rete";
|
|
import { FlowNode } from "./flow";
|
|
|
|
export type HFNodeData = FlowNode & {
|
|
deleteNode?: () => Promise<void>;
|
|
replaceWithCreatedBlock?: (block: FlowNode) => Promise<void>;
|
|
assignSelectedBlocksToContainer?: (blockIds?: string[]) => Promise<void>;
|
|
clearContainerSubflow?: () => Promise<void>;
|
|
[key: string]: unknown;
|
|
};
|
|
|
|
export type HFNode = ClassicPreset.Node & {
|
|
data?: HFNodeData;
|
|
};
|
|
|
|
export type HFConnection = ClassicPreset.Connection<HFNode, HFNode>;
|
|
|
|
export type HFSchemes = GetSchemes<HFNode, HFConnection>;
|