Commit e7f5255
authored
ref(react-router): Make RouteProps typing more generic (#3570)
Previously we copied over the typings for a react-router Route props.
This means though that when the react-router updates it's types,
there is a chance our types will break. To avoid this in the future,
this patch removes the RouteProps typing and uses a plain
`Record<string, any>` type instead.
The props we do leverage from the RouteProps have checks in the code
and there are tests covering that the RouteProps properties exist,
so making the type more generic is not that risky.1 parent c3b1bb5 commit e7f5255
3 files changed
+8
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
| 38 | + | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | 26 | | |
39 | 27 | | |
40 | 28 | | |
| |||
148 | 136 | | |
149 | 137 | | |
150 | 138 | | |
151 | | - | |
152 | | - | |
153 | | - | |
| 139 | + | |
154 | 140 | | |
155 | 141 | | |
156 | 142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3300 | 3300 | | |
3301 | 3301 | | |
3302 | 3302 | | |
3303 | | - | |
3304 | | - | |
3305 | | - | |
3306 | | - | |
| 3303 | + | |
| 3304 | + | |
| 3305 | + | |
| 3306 | + | |
3307 | 3307 | | |
3308 | 3308 | | |
3309 | 3309 | | |
| |||
14454 | 14454 | | |
14455 | 14455 | | |
14456 | 14456 | | |
14457 | | - | |
| 14457 | + | |
14458 | 14458 | | |
14459 | 14459 | | |
14460 | 14460 | | |
| |||
0 commit comments