The Valibot schema type (inferred from the argument)
A Valibot schema (sync or async) to validate against
A function (value: unknown) => Effect that validates value
against schema and resolves with the inferred output type
validate is a two-step (curried) function: the first call accepts a
Valibot schema, and the second call accepts the value to validate. The
returned Effect resolves with the validated and typed output on
success, or fails with a FailedToValidate tagged error (an instance of
FaildToValidateError) if validation fails. The underlying Valibot
error is available on the cause property of the tagged error.
Creates a curried validation function that checks a value against a Valibot Schema and returns an Effect.