Files
calendar/packages/app-store/routing-forms/trpc/forms.schema.ts
T
e4ab8d87c4 fix: Attempted to call ZFormsInputSchema() from the server (#19540)
* fix: Attempted to call ZFormsInputSchema() from the server

* chore: type optimisation

---------

Co-authored-by: Alex van Andel <me@alexvanandel.com>
2025-02-26 00:39:46 +00:00

12 lines
301 B
TypeScript

import { z } from "zod";
import { filterQuerySchemaStrict } from "@calcom/features/filters/lib/getTeamsFiltersFromQuery";
export const ZFormsInputSchema = z
.object({
filters: filterQuerySchemaStrict.optional(),
})
.nullish();
export type TFormSchema = z.infer<typeof ZFormsInputSchema>;