Output

Output inference type.

// Create object schema
const ObjectSchema = object({
  key: transform(string(), (input) => input.length),
});

// Infer object output type
type ObjectOutput = Output<typeof ObjectSchema>; // { key: number }