9 lines
393 B
TypeScript
9 lines
393 B
TypeScript
/**
|
|
* Attempts to parse potentially incomplete JSON during streaming.
|
|
* Always returns a valid object, even if the JSON is incomplete.
|
|
*
|
|
* @param partialJson The partial JSON string from streaming
|
|
* @returns Parsed object or empty object if parsing fails
|
|
*/
|
|
export declare function parseStreamingJson<T = any>(partialJson: string | undefined): T;
|
|
//# sourceMappingURL=json-parse.d.ts.map
|