MCPcopy Create free account
hub / github.com/Effect-TS/effect / catchSingleUnionCandidate

Function catchSingleUnionCandidate

packages/effect/src/SchemaAST.ts:3867–3874  ·  view source on GitHub ↗
(
  ast: Union,
  result: Effect.Effect<unknown, SchemaIssue.Issue, unknown>,
  input: unknown,
  options: ParseOptions
)

Source from the content-addressed store, hash-verified

3865}
3866
3867function catchSingleUnionCandidate(
3868 ast: Union,
3869 result: Effect.Effect<unknown, SchemaIssue.Issue, unknown>,
3870 input: unknown,
3871 options: ParseOptions
3872) {
3873 return Effect.catchCause(result, (cause) => failSingleUnionCandidate(ast, cause, input, options))
3874}
3875
3876type UnionParserState = {
3877 readonly parser: (i: number) => SchemaParser.Parser

Callers 1

getParserMethod · 0.85

Calls 1

failSingleUnionCandidateFunction · 0.85

Tested by

no test coverage detected