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

Function validateOption

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

Source from the content-addressed store, hash-verified

618 * @since 3.10.0
619 */
620export const validateOption = <A, I, R>(
621 schema: Schema.Schema<A, I, R>,
622 options?: AST.ParseOptions
623): (u: unknown, overrideOptions?: AST.ParseOptions) => Option.Option<A> =>
624 getOption(AST.typeAST(schema.ast), true, options)
625
626/**
627 * @category validation

Callers

nothing calls this directly

Calls 1

getOptionFunction · 0.85

Tested by

no test coverage detected