79333764

Date: 2025-01-06 17:01:43
Score: 1
Natty:
Report link

you can create a new Schema by combining all of them in to a single One by spreading those schemas in to the new one

export const formSchema = z.object({
...imagePostSchema.shape,
...videoPostSchema.shape,
...textPostSchema.shape,
});

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Vineeth Thungani1112