refactor: zod validation and pr comments

This commit is contained in:
Christel Westerberg
2024-04-29 14:00:24 +02:00
parent 9f0b044daa
commit d9f1470eb7
31 changed files with 222 additions and 207 deletions
+13 -11
View File
@@ -1,11 +1,13 @@
export type GetContentTypeUidType = {
all_content_page: {
total: number
}
all_loyalty_page: {
total: number
}
all_current_blocks_page: {
total: number
}
}
import z from "zod"
export const validateContentTypeUid = z.object({
all_content_page: z.object({
total: z.number(),
}),
all_loyalty_page: z.object({
total: z.number(),
}),
all_current_blocks_page: z.object({
total: z.number(),
}),
})