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

Function decodeUnknown

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

Source from the content-addressed store, hash-verified

502 * @since 3.10.0
503 */
504export const decodeUnknown = <A, I, R>(
505 schema: Schema.Schema<A, I, R>,
506 options?: AST.ParseOptions
507): (u: unknown, overrideOptions?: AST.ParseOptions) => Effect.Effect<A, ParseIssue, R> =>
508 getEffect(schema.ast, true, options)
509
510/**
511 * @throws `ParseError`

Callers 1

decodeUnknownPromiseFunction · 0.70

Calls 1

getEffectFunction · 0.85

Tested by

no test coverage detected