MCPcopy
hub / github.com/Effect-TS/effect / decodeUnknown

Function decodeUnknown

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

Source from the content-addressed store, hash-verified

559 * @since 3.10.0
560 */
561export const decodeUnknown = <A, I, R>(
562 schema: Schema<A, I, R>,
563 options?: ParseOptions
564) => {
565 const decodeUnknown = ParseResult.decodeUnknown(schema, options)
566 return (u: unknown, overrideOptions?: ParseOptions): Effect.Effect<A, ParseResult.ParseError, R> =>
567 ParseResult.mapError(decodeUnknown(u, overrideOptions), ParseResult.parseError)
568}
569
570/**
571 * @category decoding

Callers 11

validateMethod · 0.70
decodeUnknownPromiseFunction · 0.70
redactedParseFunction · 0.70
optionParseFunction · 0.70
readonlyMapParseFunction · 0.70
readonlySetParseFunction · 0.70
chunkParseFunction · 0.70
nonEmptyChunkParseFunction · 0.70
dataParseFunction · 0.70
fromExportFunction · 0.50
makeFunction · 0.50

Calls 2

isFunction · 0.70
failMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…