We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d0f321 commit 80f9cd1Copy full SHA for 80f9cd1
server/utils/zod.ts
@@ -1 +1,6 @@
1
-export { z } from 'zod'
+import { z as zod } from 'zod'
2
+
3
+export const z = {
4
+ ...zod,
5
+ intAsString: () => zod.string().transform(val => parseInt(val, 10))
6
+}
0 commit comments