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

Function dataParse

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

Source from the content-addressed store, hash-verified

8402(d) => `Data(${item(d)})`
8403
8404const dataParse = <R, A extends Readonly<Record<string, unknown>> | ReadonlyArray<unknown>>(
8405 decodeUnknown: ParseResult.DecodeUnknown<A, R>
8406): ParseResult.DeclarationDecodeUnknown<A, R> =>
8407(u, options, ast) =>
8408 Equal.isEqual(u) ?
8409 toComposite(decodeUnknown(u, options), decodeData, ast, u)
8410 : ParseResult.fail(new ParseResult.Type(ast, u))
8411
8412/**
8413 * @category api interface

Callers 1

DataFromSelfFunction · 0.85

Calls 3

toCompositeFunction · 0.85
decodeUnknownFunction · 0.70
failMethod · 0.65

Tested by

no test coverage detected