From 6c49e0335e9ef75e0566ffb547bb9c65029dbf64 Mon Sep 17 00:00:00 2001 From: Thomas Hallock Date: Sun, 14 Sep 2025 17:48:41 -0500 Subject: [PATCH] fix: add explicit type annotation for examples array in LivePreview MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added explicit number[] type annotation to examples array to resolve TypeScript implicit type inference error. This ensures the array type is properly determined during compilation. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- apps/web/src/components/LivePreview.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/components/LivePreview.tsx b/apps/web/src/components/LivePreview.tsx index 6fbd0cf5..f330ba49 100644 --- a/apps/web/src/components/LivePreview.tsx +++ b/apps/web/src/components/LivePreview.tsx @@ -379,7 +379,7 @@ function getPreviewRange(range: string | undefined): string { if (safeRange.includes('-')) { const [start, end] = safeRange.split('-').map(n => parseInt(n) || 0) - const examples = [] + const examples: number[] = [] // For larger ranges, distribute examples more evenly across the range const rangeSize = end - start + 1