fix: Remove TypeScript declare keywords from litegraph classes

- Remove declare keywords from LGraphNode properties
- Remove declare keywords from SubgraphInput/Output parent properties
- Remove declare keywords from BaseWidget properties
- Add proper type assertions for parent property access
- Fix async route handling in collect-i18n-node-defs.ts

This resolves TypeScript compilation issues and improves type safety.
This commit is contained in:
snomiao
2025-09-22 22:49:24 +00:00
parent 6ea021d595
commit 08275af74f
9 changed files with 28 additions and 29 deletions

View File

@@ -11,7 +11,7 @@ const nodeDefsPath = './src/locales/en/nodeDefs.json'
test('collect-i18n-node-defs', async ({ comfyPage }) => {
// Mock view route
comfyPage.page.route('**/view**', async (route) => {
await comfyPage.page.route('**/view**', async (route) => {
await route.fulfill({
body: JSON.stringify({})
})