Skip to content

Commit 9f9b9d2

Browse files
committed
any is bad
1 parent 783fac7 commit 9f9b9d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/shared/cache-types.cts

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export const isCachedRouteValue = (
118118
): value is CachedRouteValueForMultipleVersions =>
119119
value.kind === 'ROUTE' || value.kind === 'APP_ROUTE'
120120

121-
type MapArgsOrReturn<T> = T extends readonly any[]
121+
type MapArgsOrReturn<T> = T extends readonly unknown[]
122122
? { [K in keyof T]: MapArgsOrReturn<T[K]> }
123123
: T extends Promise<infer P>
124124
? Promise<MapArgsOrReturn<P>>

0 commit comments

Comments
 (0)