מחולל סכמות Zod מטפסים קיימים
הופך ממשקי Typescript לסכמות ולידציה של Zod באופן אוטומטי, כולל הודעות שגיאה בעברית.
Convert the following TypeScript interface into a robust Zod schema.
CONSTRAINTS:
1. Every field must have a custom error message in Hebrew (e.g., .min(1, { message: "שדה חובה" })).
2. Use .email() for email fields and .regex() for Israeli phone numbers if applicable.
3. If a field is optional, use .optional() or .nullable() appropriately based on the source interface.
4. Export the schema and the inferred Type using `z.infer`.מתי כדאי להשתמש?
חסכון בזמן בכתיבת ולידציות לטפסים או API responses.
לבדוק את זה על הפרויקט שלכם
20 דקות בוואטסאפ, ללא עלות. מספרים מה בניתם ואיפה זה נתקע, ויוצאים עם הצעד הבא.
- מבית Elya Studio
- 5.0 בגוגל
- 50+ פרויקטים של הצוות בפרודקשן