mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-03 06:47:33 +00:00
Lessons learned from purging 40 `as any` instances from browser_tests. TypeScript guidance additions: - Type assertion hierarchy (from virtuous to forbidden) - Zod schema rules (no z.any(), no test settings in production) - Public API contract preservation Playwright guidance additions: - Acceptable vs forbidden type assertion patterns - Test-local type helpers pattern (e.g., TestSettingId) - How to access internal store state without polluting APIs Amp-Thread-ID: https://ampcode.com/threads/T-019c1833-2352-728b-a523-a8f440fd3ba1 Co-authored-by: Amp <amp@ampcode.com>