Skip to content

Commit 75e03cd

Browse files
committed
fix: swap schema numbers for positive integers
1 parent f57c141 commit 75e03cd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/cache/src/schemas.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import z from 'zod'
22

33
export const cacheOptionsSchema = z.strictObject({
4-
ttl: z.number().min(1).optional(),
5-
swr: z.number().min(1).optional(),
4+
ttl: z.int().positive().min(1).optional(),
5+
swr: z.int().positive().min(1).optional(),
66
tags: z.string().array().optional(),
77
})
88

0 commit comments

Comments
 (0)