MCPcopy Index your code
hub / github.com/Effect-TS/effect / validateEither

Function validateEither

packages/effect/src/ParseResult.ts:630–634  ·  view source on GitHub ↗
(
  schema: Schema.Schema<A, I, R>,
  options?: AST.ParseOptions
)

Source from the content-addressed store, hash-verified

628 * @since 3.10.0
629 */
630export const validateEither = <A, I, R>(
631 schema: Schema.Schema<A, I, R>,
632 options?: AST.ParseOptions
633): (u: unknown, overrideOptions?: AST.ParseOptions) => Either.Either<A, ParseIssue> =>
634 getEither(AST.typeAST(schema.ast), true, options)
635
636/**
637 * @category validation

Callers

nothing calls this directly

Calls 1

getEitherFunction · 0.85

Tested by

no test coverage detected