Vercel build was failing with TS18047 — `sprint.completed_at` is possibly `null`. The earlier `.filter(s => s.completed_at != null)` runtime-filtered the nulls out but did NOT narrow the element type; TypeScript still saw `Date | null` on the result. Add a user-defined type guard `(s): s is SprintWithCompletedAt =>` so the narrowed array carries `completed_at: Date`. No runtime change. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| agent-throughput.ts | ||
| backlog-health.ts | ||
| burndown.ts | ||
| sprint-status.ts | ||
| velocity.ts | ||
| verify-stats.ts | ||