Skip to content

Commit 231ef9b

Browse files
committed
improve typescript autocomplete for CacheLifeProfiles
1 parent eca4c8d commit 231ef9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/next/src/server/use-cache/cache-life.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ type CacheLifeProfiles =
2828
| 'days'
2929
| 'weeks'
3030
| 'max'
31-
| string
31+
| (string & {})
3232

3333
function validateCacheLife(profile: CacheLife) {
3434
if (profile.stale !== undefined) {

0 commit comments

Comments
 (0)