From 0a1f1e28d2ade1fd5248fafa05ed5fdc3a9eec3e Mon Sep 17 00:00:00 2001 From: deadlinecode <110681830+deadlinecode@users.noreply.github.com> Date: Sun, 18 Aug 2024 00:35:05 +0200 Subject: [PATCH] Naming fix --- src/types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types.ts b/src/types.ts index a2c79f7..ff96ca5 100644 --- a/src/types.ts +++ b/src/types.ts @@ -27,10 +27,10 @@ type FlattenIndexRoutes = T extends object ? T[K] extends RouteEndType ? never : K - : K]: FlattenIndex; + : K]: FlattenIndexRoutes; } & (T extends { index: infer I } ? I extends RouteEndType - ? FlattenIndex + ? FlattenIndexRoutes : {} : {}) : T;