From c097785355c33d7d76400269086e776d628649e1 Mon Sep 17 00:00:00 2001 From: Vladyslav Chernyshov Date: Tue, 13 May 2025 18:26:56 -0500 Subject: [PATCH] Type "number" added to the RouteDefaults interface --- Resources/js/router.ts | 2 +- Resources/ts/router.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Resources/js/router.ts b/Resources/js/router.ts index 1cf9492..c83bf98 100644 --- a/Resources/js/router.ts +++ b/Resources/js/router.ts @@ -1,5 +1,5 @@ export interface RouteDefaults { - [index: string]: string | null; + [index: string]: string | number | null; } export interface RouteRequirements { diff --git a/Resources/ts/router.d.ts b/Resources/ts/router.d.ts index 400e219..7036ff2 100644 --- a/Resources/ts/router.d.ts +++ b/Resources/ts/router.d.ts @@ -1,5 +1,5 @@ export interface RouteDefaults { - [index: string]: string | null; + [index: string]: string | number | null; } export interface RouteRequirements { [index: string]: string;