zodInvoice satisfies ZodType<Invoice, any, any> zodInvoice satisfies ZodType<Invoice, any, any>// all properties are required by default
const Dog = z.object({
name: z.string(),
age: z.number(),
});
// extract the inferred type like this
type Dog = z.infer<typeof Dog>;
// equivalent to:
type Dog = {
name: string;
age: number;
};