teqo-backup/src/lib/schemas/petition-form.ts

7 lines
253 B
TypeScript

import { z } from 'zod'
import { commentSchema } from './comment'
import { contactSchema } from './contact'
export const petitionFormSchema = contactSchema.extend(commentSchema.shape)
export type PetitionFormInput = z.infer<typeof petitionFormSchema>