MCPcopy Create free account
hub / github.com/6174/comflowyspace / newStaticPrimitiveNode

Function newStaticPrimitiveNode

packages/common/types/comfy-node.types.ts:154–166  ·  view source on GitHub ↗
(primitiveType: FlowStaticPrimitiveType)

Source from the content-addressed store, hash-verified

152 return ret;
153 },
154 newStaticPrimitiveNode(primitiveType: FlowStaticPrimitiveType): SDNode {
155 return {
156 widget: NODE_PRIMITIVE,
157 fields: {},
158 inputs: [],
159 outputs: [{
160 name: primitiveType,
161 type: primitiveType,
162 links: [],
163 slot_index: 0
164 }],
165 }
166 },
167 newRerouteNode(): SDNode {
168 return {
169 widget: 'Reroute',

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected