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

Function decodeDefect

packages/effect/src/SchemaTransformation.ts:1349–1349  ·  view source on GitHub ↗
(input: Json)

Source from the content-addressed store, hash-verified

1347}
1348
1349const decodeDefect = (input: Json): unknown => isJsonError(input) ? decodeJsonError(input) : input
1350
1351/** @internal */
1352export const errorFromJsonError = (options?: ErrorOptions): Transformation<Error, JsonError> =>

Callers 2

decodeJsonErrorFunction · 0.85
RpcClient.tsFile · 0.85

Calls 2

isJsonErrorFunction · 0.85
decodeJsonErrorFunction · 0.85

Tested by

no test coverage detected