Skip to content

Commit 6f2e005

Browse files
Vladyslav Chernyshovtobias-93
authored andcommitted
Type "number" added to the RouteDefaults interface
1 parent a71cb66 commit 6f2e005

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Resources/js/router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export interface RouteDefaults {
2-
[index: string]: string | null;
2+
[index: string]: string | number | null;
33
}
44

55
export interface RouteRequirements {

Resources/ts/router.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export interface RouteDefaults {
2-
[index: string]: string | null;
2+
[index: string]: string | number | null;
33
}
44
export interface RouteRequirements {
55
[index: string]: string;

0 commit comments

Comments
 (0)