types.ts
....
const CustomerSchema = z.object({ firstName: z.string() }) // dummy schema
export type Customer = z.infer<typeof CustomerSchema>
....
<script setup lang="ts">
import type { Customer } from '/types'
const props = defineProps<Customer>()
...