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

Function decode

packages/effect/src/unstable/httpapi/HttpApiClient.ts:954–956  ·  view source on GitHub ↗
(fromA)

Source from the content-addressed store, hash-verified

952 Schema.Uint8Array as Schema.instanceOf<Uint8Array<ArrayBuffer>>,
953 SchemaTransformation.transform({
954 decode(fromA) {
955 return new Uint8Array(fromA)
956 },
957 encode(arr) {
958 return arr.byteLength === arr.buffer.byteLength ?
959 arr.buffer :

Callers 8

onEndpointFunction · 0.70
schemasToResponseFunction · 0.70
decodePayloadFunction · 0.70
schemaBodyJsonFunction · 0.50
schemaBodyUrlParamsFunction · 0.50
schemaHeadersFunction · 0.50
schemaJsonFunction · 0.50
schemaNoBodyFunction · 0.50

Calls 1

failMethod · 0.45

Tested by

no test coverage detected