Comfy-Org / Comfy-Org/ComfyUI_frontend

[DevTask] Fix workflow store interface

Open
#3,858 0 comments 1 reaction 0 assignees View on GitHub
area:workflows developer experience
Dominant language
TypeScript
Stars
2k
Forks
699
Avg merge
1d 7h
Merged PRs (30d)
490

Description

- `WorkflowStore` is a public interface to describe the pinia store
- It is/was required for this store as the Zod types and/or Vue ref unwrapping end up exceeding a hard limit on TypeScript type complexity
- `useWorfklowStore` no longer returns an object that accurately represents the public interface `WorkflowStore` (type assertions are used)

These should be audited and cleaned up at some point. A solution may be to split the workflow store into smaller parts.

┆Issue is synchronized with this [Notion page](https://www.notion.so/Issue-3858-DevTask-Fix-workflow-store-interface-1f16d73d3650814b8851c798ef6ee77d) by [Unito](https://www.unito.io)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.