The result of Bun.JSONL.parseChunk.
interface
JSONL.ParseChunkResult
interface ParseChunkResult
- done: boolean
trueif all input was consumed successfully.falseif the input ends with an incomplete value or a parse error occurred. - error: null | SyntaxError
A
SyntaxErrorif a parse error occurred, otherwisenull. Values parsed before the error are still available invalues. - read: number
How far into the input was consumed. When the input is a string, this is a character offset. When the input is a
TypedArray, this is a byte offset. Useinput.slice(read)orinput.subarray(read)to get the unconsumed remainder.