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

Function decode

packages/effect/src/encoding/JsonArray.ts:651–658  ·  view source on GitHub ↗
(options?: DecodeOptions)

Source from the content-addressed store, hash-verified

649 * @since 4.0.6
650 */
651export const decode = <IE = never, Done = unknown>(options?: DecodeOptions): Channel.Channel<
652 Arr.NonEmptyReadonlyArray<unknown>,
653 IE | JsonArrayError,
654 Done,
655 Arr.NonEmptyReadonlyArray<Uint8Array>,
656 IE,
657 Done
658> => Channel.pipeTo(Channel.decodeText<IE, Done>("utf-8", { ignoreBOM: true }), decodeString(options))
659
660/**
661 * Creates a channel that parses the text of one JSON document and decodes the

Callers 1

decodeSchemaFunction · 0.70

Calls 2

decodeTextMethod · 0.80
decodeStringFunction · 0.70

Tested by

no test coverage detected