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

Function decode

packages/effect/src/encoding/Xml.ts:515–525  ·  view source on GitHub ↗
(options?: DecodeOptions)

Source from the content-addressed store, hash-verified

513 * @since 4.0.6
514 */
515export const decode = <IE = never, Done = unknown>(options?: DecodeOptions): Channel.Channel<
516 Arr.NonEmptyReadonlyArray<Event>,
517 XmlError | IE,
518 Done,
519 Arr.NonEmptyReadonlyArray<Uint8Array>,
520 IE,
521 Done
522> => {
523 const parser = makeParser(options, true)
524 return makeChannel<Uint8Array, Event, IE, Done>(() => new Utf8Input(parser()))
525}
526
527/**
528 * Creates a channel that collects the elements at a path into trees.

Callers

nothing calls this directly

Calls 3

makeParserFunction · 0.70
makeChannelFunction · 0.70
parserFunction · 0.70

Tested by

no test coverage detected