fix: add explicit type annotation for examples array in LivePreview
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user