mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-28 10:12:11 +00:00
fix: restore ExtensionManager API contract
- Revert extensionManager type from WorkspaceStore to ExtensionManager - Remove WorkspaceStore export from workspaceStore.ts - Add WorkspaceStore type to browser_tests/types/globals.d.ts - Update browser tests to use specific 'as WorkspaceStore' casts - Consolidate Window augmentation into single globals.d.ts file Amp-Thread-ID: https://ampcode.com/threads/T-019c1854-3c3c-723d-8ce6-183ce06fcf1b Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
import { readFileSync } from 'fs'
|
||||
|
||||
import type { useWorkspaceStore } from '../../../src/stores/workspaceStore'
|
||||
import type { WorkspaceStore } from '../../types/globals'
|
||||
import type { ComfyPage } from '../ComfyPage'
|
||||
|
||||
type WorkspaceStore = ReturnType<typeof useWorkspaceStore>
|
||||
|
||||
export type FolderStructure = {
|
||||
[key: string]: FolderStructure | string
|
||||
}
|
||||
@@ -45,7 +43,9 @@ export class WorkflowHelper {
|
||||
}
|
||||
|
||||
await this.comfyPage.page.evaluate(async () => {
|
||||
await window.app!.extensionManager.workflow.syncWorkflows()
|
||||
await (
|
||||
window.app!.extensionManager as WorkspaceStore
|
||||
).workflow.syncWorkflows()
|
||||
})
|
||||
|
||||
// Wait for Vue to re-render the workflow list
|
||||
|
||||
Reference in New Issue
Block a user