Skip to content

Commit

Permalink
any is bad
Browse files Browse the repository at this point in the history
  • Loading branch information
pieh committed Aug 28, 2024
1 parent 783fac7 commit 9f9b9d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/cache-types.cts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export const isCachedRouteValue = (
): value is CachedRouteValueForMultipleVersions =>
value.kind === 'ROUTE' || value.kind === 'APP_ROUTE'

type MapArgsOrReturn<T> = T extends readonly any[]
type MapArgsOrReturn<T> = T extends readonly unknown[]
? { [K in keyof T]: MapArgsOrReturn<T[K]> }
: T extends Promise<infer P>
? Promise<MapArgsOrReturn<P>>
Expand Down

0 comments on commit 9f9b9d2

Please sign in to comment.