diff --git a/src/shared/cache-types.cts b/src/shared/cache-types.cts index a8ad9f2ba0..f0e9478494 100644 --- a/src/shared/cache-types.cts +++ b/src/shared/cache-types.cts @@ -118,7 +118,7 @@ export const isCachedRouteValue = ( ): value is CachedRouteValueForMultipleVersions => value.kind === 'ROUTE' || value.kind === 'APP_ROUTE' -type MapArgsOrReturn = T extends readonly any[] +type MapArgsOrReturn = T extends readonly unknown[] ? { [K in keyof T]: MapArgsOrReturn } : T extends Promise ? Promise>