Skip to content

Commit d6b98de

Browse files
authored
fix: swap schema numbers for positive integers (#2)
* fix: swap schema numbers for positive integers * Remove redundant `min` call.
1 parent f57c141 commit d6b98de

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().optional(),
5+
swr: z.int().positive().optional(),
66
tags: z.string().array().optional(),
77
})
88

0 commit comments

Comments
 (0)