[CodeHealth] Remove remaining uses of global app var (#3868)

This commit is contained in:
filtered
2025-05-14 02:01:02 +10:00
committed by GitHub
parent a17fb04f83
commit 58906fa821
7 changed files with 19 additions and 10 deletions

View File

@@ -1,3 +1,5 @@
import type { LGraph } from '@comfyorg/litegraph'
import type {
DeviceStats,
EmbeddingsResponse,
@@ -54,5 +56,11 @@ export type {
}
declare global {
const app: ComfyApp
interface Window {
/** For use by extensions and in the browser console. Where possible, import `app` from '@/scripts/app' instead. */
app?: ComfyApp
/** For use by extensions and in the browser console. Where possible, import `app` and access via `app.graph` instead. */
graph?: LGraph
}
}