mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-09 01:20:09 +00:00
Add subgraph skeleton classes (#997)
Allows downstream consumers to use subgraph types ahead of impl.
This commit is contained in:
12
src/subgraph/SubgraphOutputNode.ts
Normal file
12
src/subgraph/SubgraphOutputNode.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import type { Positionable } from "@/interfaces"
|
||||
import type { NodeId } from "@/LGraphNode"
|
||||
|
||||
import { SubgraphIONodeBase } from "./SubgraphIONodeBase"
|
||||
|
||||
export class SubgraphOutputNode extends SubgraphIONodeBase implements Positionable {
|
||||
readonly id: NodeId = -20
|
||||
|
||||
get slots() {
|
||||
return this.subgraph.outputs
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user