mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-05 07:30:11 +00:00
* switch to schema interface and remove assertions at callsites * [refactor] improve type safety and code organization - addresses @DrJKL's review feedback - Remove unnecessary type assertions from REROUTE_DEFAULTS - Use safer Omit<RerouteData, 'id' < /dev/null | 'parentId'> pattern for defaults to prevent hardcoded ID bugs - Extract asRerouteId and asLinkId utility functions to module scope as pure functions - Update getRerouteField to handle partial defaults safely 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * [fix] revert to clean defaults pattern - removes any type usage Reverted the overcomplicated Omit pattern back to the simple, working approach. The original pattern was cleaner and didn't introduce unnecessary complexity. --------- Co-authored-by: Claude <noreply@anthropic.com>