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

Function toComposite

packages/effect/src/Schema.ts:5812–5821  ·  view source on GitHub ↗
(
  eff: Effect.Effect<A, ParseResult.ParseIssue, R>,
  onSuccess: (a: A) => B,
  ast: AST.AST,
  actual: unknown
)

Source from the content-addressed store, hash-verified

5810 value(fc).map(redacted_.make)
5811
5812const toComposite = <A, R, B>(
5813 eff: Effect.Effect<A, ParseResult.ParseIssue, R>,
5814 onSuccess: (a: A) => B,
5815 ast: AST.AST,
5816 actual: unknown
5817): Effect.Effect<B, ParseResult.Composite, R> =>
5818 ParseResult.mapBoth(eff, {
5819 onFailure: (e) => new ParseResult.Composite(ast, actual, e),
5820 onSuccess
5821 })
5822
5823const redactedParse = <A, R>(
5824 decodeUnknown: ParseResult.DecodeUnknown<A, R>

Callers 8

redactedParseFunction · 0.85
optionParseFunction · 0.85
eitherParseFunction · 0.85
readonlyMapParseFunction · 0.85
readonlySetParseFunction · 0.85
chunkParseFunction · 0.85
nonEmptyChunkParseFunction · 0.85
dataParseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected