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

Function encodeUnknownOption

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

Source from the content-addressed store, hash-verified

522 * @since 3.10.0
523 */
524export const encodeUnknownOption = <A, I>(
525 schema: Schema.Schema<A, I, never>,
526 options?: AST.ParseOptions
527): (u: unknown, overrideOptions?: AST.ParseOptions) => Option.Option<I> => getOption(schema.ast, false, options)
528
529/**
530 * @category encoding

Callers

nothing calls this directly

Calls 1

getOptionFunction · 0.85

Tested by

no test coverage detected