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

Function redactedParse

packages/effect/src/Schema.ts:5823–5829  ·  view source on GitHub ↗
(
  decodeUnknown: ParseResult.DecodeUnknown<A, R>
)

Source from the content-addressed store, hash-verified

5821 })
5822
5823const redactedParse = <A, R>(
5824 decodeUnknown: ParseResult.DecodeUnknown<A, R>
5825): ParseResult.DeclarationDecodeUnknown<redacted_.Redacted<A>, R> =>
5826(u, options, ast) =>
5827 redacted_.isRedacted(u) ?
5828 toComposite(decodeUnknown(redacted_.value(u), options), redacted_.make, ast, u) :
5829 ParseResult.fail(new ParseResult.Type(ast, u))
5830
5831/**
5832 * @category api interface

Callers 1

RedactedFromSelfFunction · 0.85

Calls 4

toCompositeFunction · 0.85
decodeUnknownFunction · 0.70
failMethod · 0.65
valueMethod · 0.45

Tested by

no test coverage detected