Validating Data Types at Runtime with Zod
type PersonTypeIn = z.input<typeof Person>;
/*
type PersonTypeIn = {
name: string;
age: number;
profession?: string | undefined;
status: "active" | "inactive" | "registered";
};
*/
type PersonTypeOut = z.output<typeof Person>;
/*
type PersonTypeOut = {
name: string;
age: number;
profession?: string | undefined;
status: "active" | "inactive";
};
*/