fix: build issues, extend event-type in types, use @calcom/types

This commit is contained in:
Agusti Fernandez Pardo committed 2022-05-19 22:00:22 +02:00
1 parent 7d8ed47268
commit fdc46fac7d
5 files changed
+38 -20

No files matched your search

+1 -1
View File
@@ -5,5 +5,5 @@ type Literal = boolean | number | string;
type Json = Literal | { [key: string]: Json } | Json[];
const literalSchema = z.union([z.string(), z.number(), z.boolean()]);
export const jsonSchema: z.ZodSchema<Json> = z.lazy(() =>
z.union([literalSchema, z.array(jsonSchema), z.record(jsonSchema)]).or(z.null())
z.union([literalSchema, z.array(jsonSchema), z.record(jsonSchema)])
);