UNPKG

@arizeai/phoenix-client

Version:

A client for the Phoenix API

14 lines 436 B
/** * Safely stringify a JSON object * * @param args - The arguments to pass to JSON.stringify * @returns An object containing both the stringified JSON and the error if there was one */ export declare function safelyStringifyJSON(...args: Parameters<typeof JSON.stringify>): { json: string; stringifyError?: undefined; } | { json: null; stringifyError: unknown; }; //# sourceMappingURL=safelyStringifyJSON.d.ts.map