Creates a type where dynamic fields are optional and static fields remain required, inferred from a Zod schema.
The Zod object schema defining the input structure.
The keys of the inferred input type that are dynamic (can be provided incrementally).
const schema = z.object({ name: z.string(), age: z.number(), email: z.string() });type Dynamic = DynamicInput<typeof schema, 'email'>;// Result: { name: string; age: number; email?: string } Copy
const schema = z.object({ name: z.string(), age: z.number(), email: z.string() });type Dynamic = DynamicInput<typeof schema, 'email'>;// Result: { name: string; age: number; email?: string }
Creates a type where dynamic fields are optional and static fields remain required, inferred from a Zod schema.