summaryrefslogtreecommitdiff
path: root/src/lib/validators/newsletter.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/validators/newsletter.ts')
-rw-r--r--src/lib/validators/newsletter.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/validators/newsletter.ts b/src/lib/validators/newsletter.ts
new file mode 100644
index 0000000..9593fcf
--- /dev/null
+++ b/src/lib/validators/newsletter.ts
@@ -0,0 +1,6 @@
+import { z } from 'zod';
+
+export const NewsletterSchema = z.object({
+ email: z.string().email(),
+});
+export type Newsletter = z.infer<typeof NewsletterSchema>;