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

Function decodeUnknownOption

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

Source from the content-addressed store, hash-verified

471 * @since 3.10.0
472 */
473export const decodeUnknownOption = <A, I>(
474 schema: Schema.Schema<A, I, never>,
475 options?: AST.ParseOptions
476): (u: unknown, overrideOptions?: AST.ParseOptions) => Option.Option<A> => getOption(schema.ast, true, options)
477
478/**
479 * @category decoding

Callers

nothing calls this directly

Calls 1

getOptionFunction · 0.85

Tested by

no test coverage detected