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

Function decodeString

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

Source from the content-addressed store, hash-verified

476 * @since 4.0.6
477 */
478export const decodeString = <IE = never, Done = unknown>(options?: DecodeOptions): Channel.Channel<
479 Arr.NonEmptyReadonlyArray<Event>,
480 XmlError | IE,
481 Done,
482 Arr.NonEmptyReadonlyArray<string>,
483 IE,
484 Done
485> => {
486 const parser = makeParser(options, false)
487 return makeChannel<string, Event, IE, Done>(() => new TextInput(parser()))
488}
489
490/**
491 * Creates a channel that decodes UTF-8 XML bytes into events.

Callers

nothing calls this directly

Calls 3

makeParserFunction · 0.70
makeChannelFunction · 0.70
parserFunction · 0.70

Tested by

no test coverage detected