InferInput
Infer input type.
// Create object schema
const ObjectSchema = v.object({
key: v.pipe(
v.string(),
v.transform((input) => input.length)
),
});
// Infer object input type
type ObjectInput = v.InferInput<typeof ObjectSchema>; // { key: string }