Phase 1 Batch 3: Route Pages type safety improvements Fixed 10 any-type errors across 7 route page files: 1. src/routes/+page.ts (1 error) - Added PaginationInfo interface for fetchProjects return type 2. src/routes/admin/+layout.svelte (1 error) - Changed children prop from any to Snippet type 3. src/routes/admin/albums/+page.svelte (1 error) - Changed Album.content from any to EditorData type 4. src/routes/admin/universe/+page.svelte (1 error) - Changed form prop from any to Record<string, unknown> | null | undefined 5. src/routes/albums/[slug]/+page.svelte (4 errors) - Added AlbumPhoto and AlbumData interfaces - Fixed photo map parameters to use AlbumPhoto - Fixed extractContentPreview to accept EditorData | null - Fixed generateAlbumJsonLd to accept AlbumData 6. src/routes/albums/+page.svelte (1 error) - Changed coverPhoto.colors from any to ColorPalette[] 7. src/routes/photos/[id]/+page.svelte (1 error) - Changed navigateToPhoto parameter from any to PhotoItem | null Progress: 67 any-type errors remaining (down from 77) |
||
|---|---|---|
| .. | ||
| assets | ||
| lib | ||
| routes | ||
| stories | ||
| app.css | ||
| app.d.ts | ||
| app.html | ||
| decs.d.ts | ||
| global.d.ts | ||