refactor: zod validation and pr comments
This commit is contained in:
@@ -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(),
|
||||
}),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user