Skip to content

Commit 144509e

Browse files
committed
fix(types): resolve Zod transform inference for glow parameter
1 parent 2b32aef commit 144509e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/validations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ const baseStreakParamsSchema = z.object({
254254
.string()
255255
.optional()
256256
.transform((val) => {
257-
if (val === undefined) return true;
257+
if (val === undefined) return undefined; // Let .default() handle it!
258258
return val === 'true' || val === '1';
259259
})
260260
.default(true),

0 commit comments

Comments
 (0)