mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-03 04:31:58 +00:00
Relax schema on node I/O link (#427)
This commit is contained in:
@@ -42,7 +42,7 @@ const zNodeOutput = z
|
|||||||
.object({
|
.object({
|
||||||
name: z.string(),
|
name: z.string(),
|
||||||
type: zDataType,
|
type: zDataType,
|
||||||
links: z.array(z.number()).nullable(),
|
links: z.array(z.number()).nullable().optional(),
|
||||||
slot_index: zSlotIndex.optional()
|
slot_index: zSlotIndex.optional()
|
||||||
})
|
})
|
||||||
.passthrough()
|
.passthrough()
|
||||||
@@ -51,7 +51,7 @@ const zNodeInput = z
|
|||||||
.object({
|
.object({
|
||||||
name: z.string(),
|
name: z.string(),
|
||||||
type: zDataType,
|
type: zDataType,
|
||||||
link: z.number().nullable(),
|
link: z.number().nullable().optional(),
|
||||||
slot_index: zSlotIndex.optional()
|
slot_index: zSlotIndex.optional()
|
||||||
})
|
})
|
||||||
.passthrough()
|
.passthrough()
|
||||||
|
|||||||
Reference in New Issue
Block a user