mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-20 06:44:32 +00:00
[CodeHealth] Remove remaining uses of global app var (#3868)
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user