Fix type assertions for optimistic UI helpers
Add helper functions to properly type form action results for
pending posts/comments. This avoids Prettier stripping generic
type parameters when they appear in Svelte templates.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>