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