This repository has been archived on 2026-03-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
openclaw-extensions/wecom/node_modules/@mariozechner/pi-ai/dist/utils/json-parse.d.ts
T

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