mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-08 09:00:05 +00:00
Rename ComfyWorkflow to ComfyWorkflowJSON (#91)
This commit is contained in:
@@ -127,9 +127,11 @@ export type NodeInput = z.infer<typeof zNodeInput>;
|
||||
export type NodeOutput = z.infer<typeof zNodeOutput>;
|
||||
export type ComfyLink = z.infer<typeof zComfyLink>;
|
||||
export type ComfyNode = z.infer<typeof zComfyNode>;
|
||||
export type ComfyWorkflow = z.infer<typeof zComfyWorkflow>;
|
||||
export type ComfyWorkflowJSON = z.infer<typeof zComfyWorkflow>;
|
||||
|
||||
export async function parseComfyWorkflow(data: string): Promise<ComfyWorkflow> {
|
||||
export async function parseComfyWorkflow(
|
||||
data: string
|
||||
): Promise<ComfyWorkflowJSON> {
|
||||
// Validate
|
||||
const result = await zComfyWorkflow.safeParseAsync(JSON.parse(data));
|
||||
if (!result.success) {
|
||||
|
||||
Reference in New Issue
Block a user