Loading homepage
Input: schema.object({user:schema.object({name:schema.string().min(2)}),scores:schema.array(schema.number())}).parse({user:{name:"Ada",extra:1},scores:[1,2],extra:true}) Output: {user:{name:"Ada"},scores:[1,2]}
Input: schema.array(schema.object({age:schema.number().min(0)})).safeParse([{age:-1},{age:"bad"}]) Output: Errors at [0,"age"] and [1,"age"], in that order.
Implement the exported API in index.js or index.ts using the documented contract.