Last active
March 2, 2026 19:00
-
-
Save codigoconjuan/de3fcb6611a7389a99a9048bd8576168 to your computer and use it in GitHub Desktop.
Schema para Perfiles de Meeti
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import z from "zod"; | |
| export const ProfileSchema = z.object({ | |
| name: z.string() | |
| .min(3, {error: 'Tu nombre es Obligatorio'}), | |
| bio: z.string() | |
| .min(1, {error: 'Añade una descripción o biografía'}), | |
| image: z.url({ protocol: /^https?$/, hostname: z.regexes.domain, error: 'La imagen es obligatoria' }), | |
| }) | |
| export type ProfileInput = z.infer<typeof ProfileSchema> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment