ウェブエンジニア問題集

以下の Zod スキーマから TypeScript の型を導出したい。正しい書き方はどれか。 const UserSchema = z.object({ name: z.string(), age: z.number().optional(), });