Commit dc55595
authored
Fix type error for consumers on @types/react v19 (#409)
React.ReactText was removed from @types/react v19. It was an alias for
string | number, so substitute the underlying types directly so the
SubMenuProps.title declaration keeps compiling against both v18 and v19.1 parent 2242b02 commit dc55595
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
0 commit comments