File tree Expand file tree Collapse file tree 7 files changed +16
-1
lines changed
react-router-dom-v5-compat Expand file tree Collapse file tree 7 files changed +16
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " react-router-dom-v5-compat " : minor
3
+ " react-router-native " : minor
4
+ " react-router-dom " : minor
5
+ " react-router " : minor
6
+ " @remix-run/router " : minor
7
+ ---
8
+
9
+ Export the ` PathParam ` type from the public API
Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ export type {
85
85
Params ,
86
86
Path ,
87
87
PathMatch ,
88
+ PathParam ,
88
89
PathPattern ,
89
90
PathRouteProps ,
90
91
Pathname ,
Original file line number Diff line number Diff line change @@ -126,6 +126,7 @@ export type {
126
126
Path ,
127
127
PathMatch ,
128
128
Pathname ,
129
+ PathParam ,
129
130
PathPattern ,
130
131
PathRouteProps ,
131
132
RedirectFunction ,
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ export type {
51
51
Path ,
52
52
PathMatch ,
53
53
Pathname ,
54
+ PathParam ,
54
55
PathPattern ,
55
56
PathRouteProps ,
56
57
RedirectFunction ,
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import type {
18
18
Params ,
19
19
Path ,
20
20
PathMatch ,
21
+ PathParam ,
21
22
PathPattern ,
22
23
RedirectFunction ,
23
24
RelativeRoutingType ,
@@ -153,6 +154,7 @@ export type {
153
154
Params ,
154
155
Path ,
155
156
PathMatch ,
157
+ PathParam ,
156
158
PathPattern ,
157
159
PathRouteProps ,
158
160
Pathname ,
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ export type {
20
20
ParamParseKey ,
21
21
Params ,
22
22
PathMatch ,
23
+ PathParam ,
23
24
PathPattern ,
24
25
RedirectFunction ,
25
26
ShouldRevalidateFunction ,
Original file line number Diff line number Diff line change @@ -349,7 +349,7 @@ type _PathParam<Path extends string> =
349
349
* "/:a/:b" -> "a" | "b"
350
350
* "/:a/b/:c/*" -> "a" | "c" | "*"
351
351
*/
352
- type PathParam < Path extends string > =
352
+ export type PathParam < Path extends string > =
353
353
// check if path is just a wildcard
354
354
Path extends "*" | "/*"
355
355
? "*"
You can’t perform that action at this time.
0 commit comments