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

Function decodeUnknownEither

packages/effect/src/Schema.ts:574–581  ·  view source on GitHub ↗
(
  schema: Schema<A, I, never>,
  options?: ParseOptions
)

Source from the content-addressed store, hash-verified

572 * @since 3.10.0
573 */
574export const decodeUnknownEither = <A, I>(
575 schema: Schema<A, I, never>,
576 options?: ParseOptions
577) => {
578 const decodeUnknownEither = ParseResult.decodeUnknownEither(schema, options)
579 return (u: unknown, overrideOptions?: ParseOptions): either_.Either<A, ParseResult.ParseError> =>
580 either_.mapLeft(decodeUnknownEither(u, overrideOptions), ParseResult.parseError)
581}
582
583/**
584 * @category decoding

Callers 3

SchemaStruct.tsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected