next.js
2c548afd - Add detection for non-serializable function props

Commit
67 days ago
Add detection for non-serializable function props Added warning section to flag when function types are passed as props across server→client boundaries. **Changes:** - Track function props during type analysis - Added functionProps array to PropsTypeInfo - Display NON-SERIALIZABLE PROPS section in output - Show prop name and value for each function prop **Detection Logic:** - Check if type has call signatures - If yes, it's a function → non-serializable - Track prop name in functionProps array **Example Output:** ``` ⚠️ NON-SERIALIZABLE PROPS DETECTED: - onClick = {handleClick} (function type) - y = {getUser} (function type) ``` This helps identify props that cannot be serialized and sent to client components, which would cause runtime errors. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Author
Parents
Loading