Files
ketopath/apps/web
lucianoandClaude Opus 4.7 e76074869b fix(web): typecheck stricti per build di produzione
Quattro fix di tipi che emergono solo durante `next build` (con Next.js che esegue typecheck stretto su tutta l'app), pre-esistenti su main:

- `fast-timer.tsx`: l'omitted-vs-undefined di `exactOptionalPropertyTypes`
  rifiuta `{other: undefined}` per un campo opzionale. Costruisco l'oggetto
  symptoms condizionalmente.
- `plan-week.tsx`: `slots[0]` con `noUncheckedIndexedAccess` è `Slot |
  undefined`. Optional chaining `slots[0]?.meal`.
- `profile-form.tsx` e `weight-entry-form.tsx`: il mismatch Zod 3 + RHF
  + `exactOptionalPropertyTypes` sul tipo del Resolver è noto e non sistemabile
  senza upgrade. Cast locale del solo zodResolver, runtime invariato.

Lint pulito, 99/99 test verdi, `next build` ok in locale.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-07 13:49:52 +02:00
..