Better Feedback API

This commit is contained in:
taskylizard
2023-11-12 16:40:43 +05:30
parent d58d95b768
commit fb4646500c
5 changed files with 54 additions and 52 deletions

View File

@@ -0,0 +1,10 @@
import z from "zod";
export const FeedbackSchema = z.object({
message: z.string().min(5).max(1000),
type: z.enum(["bug", "suggestion", "appreciate", "other"]),
contact: z.string().min(5).max(20).optional(),
page: z.string().min(3).max(10),
});
export type FeedbackType = z.infer<typeof FeedbackSchema>;