Commit 1e7f963
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 <noreply@anthropic.com>1 parent d94259f commit 1e7f963
2 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
0 commit comments