Files
ComfyUI_frontend/src/extensions/core
Alexander Brown dbb0bd961f Chore: TypeScript cleanup - remove 254 @ts-expect-error suppressions (#7884)
## Summary

Removes **254** `@ts-expect-error` suppressions through proper type
fixes rather than type assertions.

## Key Changes

### Type System Improvements
- Add `globalDefs` and `groupNodes` types to `ComfyAppWindowExtension`
- Extract interfaces for group node handling (`GroupNodeHandler`,
`InnerNodeOutput`, etc.)
- Add `getHandler()` helper to consolidate GROUP symbol access pattern

### Files Fixed
- **pnginfo.ts**: 39 suppressions removed via proper typing of
workflow/prompt data
- **app.ts**: 39 suppressions removed via interface extraction and type
narrowing
- **Tier 1 files**: 17 suppressions removed (maskeditor, imageDrawer,
groupNode, etc.)
- **groupNode.ts**: Major refactoring with proper interface organization

## Approach

Following established constraints:
- No `any` types
- No `as unknown as T` casts (except legacy API boundaries)
- Priority: Fix actual types > Type narrowing > Targeted suppressions as
last resort
- Prefix unused callback parameters with underscore
- Extract repeated inline types into named interfaces

## Validation

-  `pnpm typecheck` passes
-  `pnpm lint` passes
-  `pnpm knip` passes

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-7884-Chore-TypeScript-cleanup-remove-254-ts-expect-error-suppressions-2e26d73d3650812e9b48da203ce1d296)
by [Unito](https://www.unito.io)

---------

Co-authored-by: Amp <amp@ampcode.com>
2026-01-10 21:17:31 -08:00
..
2025-12-26 13:27:44 -07:00
2025-12-20 14:04:16 -07:00
2025-12-20 14:04:16 -07:00
2025-12-11 23:37:34 -07:00

Core Extensions

This directory contains the core extensions that provide essential functionality to the ComfyUI frontend.

📚 Full Documentation

The complete documentation for core extensions has been moved to:

/docs/extensions/core.md

Quick Reference

This directory contains built-in extensions that ship with ComfyUI, including:

  • Image Processing: maskeditor, uploadImage, saveImageExtraOutput, clipspace
  • Graph Management: groupNode, groupNodeManage, groupOptions, rerouteNode, noteNode
  • Input Handling: widgetInputs, uploadAudio, webcamCapture, simpleTouchSupport
  • UI Enhancements: contextMenuFilter, previewAny, nodeTemplates
  • Text Processing: dynamicPrompts, editAttention
  • Platform Support: electronAdapter

and more.

See Also