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

Function decodeDefect

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

Source from the content-addressed store, hash-verified

1136}
1137
1138const decodeDefect = (input: Json): unknown => isJsonError(input) ? decodeJsonError(input) : input
1139
1140/** @internal */
1141export 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