Convert blog to TypeScript with minimal types (#864)
* Convert blog to TypeScript with minimal types
- Rename all .js files in app/ to .ts/.tsx
- Add minimal type annotations using 'any' where needed
- Add Post interface for basic type safety
- Fix date arithmetic and CSS custom property types
- Cast complex plugin configurations to avoid type conflicts
- Build passes successfully with no type errors
Focuses on catching obvious bugs and improving autocomplete
without heavy type definitions as requested.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* Improve TypeScript types by removing unnecessary any types
- Replace any with proper React component prop types
- Add proper MouseEvent typing for Link component
- Export and use Post interface throughout the app
- Use proper Promise<{slug: string}> for Next.js params
- Add LinkProps interface with proper typing
- Keep any only where genuinely needed (complex configs)
Better type safety while maintaining simplicity.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* Clean up Link component types
- Remove separate LinkProps interface, define inline instead
- Remove [key: string]: any index signature
- Use React.ComponentProps<typeof NextLink> for proper rest props typing
- Cleaner, more explicit typing without escape hatches
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>
authored by
danabra.mov
Claude
and committed by
GitHub
371f556a
87cf122a