We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f57c141 commit d6b98deCopy full SHA for d6b98de
1 file changed
packages/cache/src/schemas.ts
@@ -1,8 +1,8 @@
1
import z from 'zod'
2
3
export const cacheOptionsSchema = z.strictObject({
4
- ttl: z.number().min(1).optional(),
5
- swr: z.number().min(1).optional(),
+ ttl: z.int().positive().optional(),
+ swr: z.int().positive().optional(),
6
tags: z.string().array().optional(),
7
})
8
0 commit comments