diff --git a/server/utils/zod.ts b/server/utils/zod.ts index f2376172..87d5cc7e 100644 --- a/server/utils/zod.ts +++ b/server/utils/zod.ts @@ -1 +1,6 @@ -export { z } from 'zod' +import { z as zod } from 'zod' + +export const z = { + ...zod, + intAsString: () => zod.string().transform(val => parseInt(val, 10)) +}