mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-19 14:30:07 +00:00
Build comfyui-frontend-types library (#1725)
* Install vite-plugin-dts * Explicitly type workflowStore * Working rollup * Hide diff type * Inline primevue toast mesage types * Add prepare-types script to generate package.json for type package * Add global declaration * Add publish types Github action * Update litegraph * Add @comfyorg to package name
This commit is contained in:
@@ -30,7 +30,7 @@ interface QueuePromptRequestBody {
|
||||
number?: number
|
||||
}
|
||||
|
||||
class ComfyApi extends EventTarget {
|
||||
export class ComfyApi extends EventTarget {
|
||||
#registered = new Set()
|
||||
api_host: string
|
||||
api_base: string
|
||||
|
||||
@@ -407,7 +407,7 @@ export class ChangeTracker {
|
||||
return false
|
||||
}
|
||||
|
||||
static graphDiff(a: ComfyWorkflowJSON, b: ComfyWorkflowJSON) {
|
||||
private static graphDiff(a: ComfyWorkflowJSON, b: ComfyWorkflowJSON) {
|
||||
function sortGraphNodes(graph: ComfyWorkflowJSON) {
|
||||
return {
|
||||
links: graph.links,
|
||||
|
||||
Reference in New Issue
Block a user