Package: effect
Module: Channel
Decodes incoming Uint8Array chunks into strings using TextDecoder.
Details
Input chunks are decoded with streaming enabled so multi-byte characters may
span Uint8Array boundaries. The optional encoding and options are
passed to TextDecoder.
Signature
declare const decodeText: <Err, Done>(encoding?: string, options?: TextDecoderOptions) => Channel<Arr.NonEmptyReadonlyArray<string>, Err, Done, Arr.NonEmptyReadonlyArray<Uint8Array>, Err, Done>
Since v4.0.0