Enable ts-strict for executionStore (#1320)

* Fix listener types

* nit

* nit

* fix type
This commit is contained in:
Chenlei Hu
2024-10-26 17:00:18 -04:00
committed by GitHub
parent 02a951ad58
commit 386594554e
2 changed files with 56 additions and 37 deletions

View File

@@ -4,13 +4,14 @@ import { api } from './api'
import { clone } from './utils'
import { LGraphCanvas, LiteGraph } from '@comfyorg/litegraph'
import { ComfyWorkflow } from './workflows'
import type { ComfyWorkflowJSON } from '@/types/comfyWorkflow'
export class ChangeTracker {
static MAX_HISTORY = 50
#app: ComfyApp
undoQueue = []
redoQueue = []
activeState = null
activeState: ComfyWorkflowJSON | null = null
isOurLoad = false
workflow: ComfyWorkflow | null
changeCount = 0