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

Function encodeUnknown

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

Source from the content-addressed store, hash-verified

553 * @since 3.10.0
554 */
555export const encodeUnknown = <A, I, R>(
556 schema: Schema.Schema<A, I, R>,
557 options?: AST.ParseOptions
558): (u: unknown, overrideOptions?: AST.ParseOptions) => Effect.Effect<I, ParseIssue, R> =>
559 getEffect(schema.ast, false, options)
560
561/**
562 * @category decoding

Callers 1

encodeUnknownPromiseFunction · 0.70

Calls 1

getEffectFunction · 0.85

Tested by

no test coverage detected