effect-io-ai

Package: effect
Module: Stream

Stream.decodeText

Decode Uint8Array chunks into a stream of strings using the specified encoding.

Signature

declare const decodeText: { (encoding?: string | undefined): <E, R>(self: Stream<Uint8Array, E, R>) => Stream<string, E, R>; <E, R>(self: Stream<Uint8Array, E, R>, encoding?: string | undefined): Stream<string, E, R>; }

Source

Since v2.0.0