wholeTextParseTransformer
wholeTextParseTransformer<
T>(parse,label):StreamTransformer<Uint8Array<ArrayBufferLike>,T>
Defined in: packages/format-core/src/whole-buffer-transform.ts:28
Transformer that buffers a whole byte stream, decodes it as UTF-8 and emits a single parsed value on flush.
Formats whose grammar spans the entire document — JSON, YAML, TOML, INI —
cannot emit before the input ends, so they all share this shape. This is a
fourth consumption pattern alongside DecodeDriver/decodeAll/
DecodeStream: it exists for grammars with no incremental decode capability
at all, not just ones a caller chose not to stream.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”(text) => T
Converts the decoded document into a value.
string
Format name, used in the wrapped error message.
Returns
Section titled “Returns”StreamTransformer<Uint8Array<ArrayBufferLike>, T>
A transformer for new TransformStream(...).