cal.pub0.org/packages/trpc/server/routers/viewer/webhook/get.schema.ts

10 lines
258 B
TypeScript

import { z } from "zod";
import { webhookIdAndEventTypeIdSchema } from "./types";
export const ZGetInputSchema = webhookIdAndEventTypeIdSchema.extend({
webhookId: z.string().optional(),
});
export type TGetInputSchema = z.infer<typeof ZGetInputSchema>;