mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-23 22:25:05 +00:00
Decision: All collection-returning methods (widgets(), inputs(), etc.) and object-returning methods (getProperties()) return fresh copies. Benefits: - True immutability: mutations never affect internal state - JavaScript-safe: works regardless of TypeScript types - Simple mental model: "this is your copy" Applied consistently across the extension API surface. Addresses review discussion item #10 from design-review-12142.md (Topic 14) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>