You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RBS: Narrow type signatures for props parameters (#1966)
## Summary
Improves type precision for props parameters in RBS signatures by
changing from `untyped` to `Hash[Symbol, untyped] | String`.
## Changes
- **helper.rbs**: Updated `sanitized_props_string` props parameter type
- **controller.rbs**: Updated `redux_store` props parameter type
## Benefits
- More precise type checking for props parameters
- Accepts both common formats (Hash or JSON string)
- Better IDE support and autocomplete
- Catches type errors earlier
## Testing
- ✅ `bundle exec rubocop` passes with no violations
- ✅ Pre-commit hooks pass (formatting, linting, trailing newlines)
Fixes#1951
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- Reviewable:start -->
- - -
This change is [<img src="https://reviewable.io/review_button.svg"
height="34" align="absmiddle"
alt="Reviewable"/>](https://reviewable.io/reviews/shakacode/react_on_rails/1966)
<!-- Reviewable:end -->
Co-authored-by: Claude <[email protected]>
0 commit comments