add @lib and @api paths for cleaner imports

This commit is contained in:
Agusti Fernandez Pardo committed 2022-03-25 00:43:35 +01:00
1 parent 737a8897ba
commit f4d889e87b
10 files changed
+232 -38

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
import { z } from "zod";
const schema = z
.object({
title: z.string().min(3),
slug: z.string().min(3),
length: z.number().min(1).max(1440), // max is a full day.
description: z.string().min(3).optional(),
})
.strict(); // Adding strict so that we can disallow passing in extra fields
export default schema;