UNPKG

@prestodb/presto-js-client

Version:

This is a Presto JavaScript client that connects to Presto via Presto's REST API to run queries.

16 lines (15 loc) 652 B
/** * Parses a JSON including bigger numbers into BigInts * This function checks if JSON.parse reviver callback has a context parameter * and falls back onto the default parsing if not. * See also: * - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#browser_compatibility * - https://github.com/tc39/proposal-json-parse-with-source * @param _ Key * @param value Parsed value * @param context Context with source text * @returns Parsed object with BigInts where required */ export declare function parseWithBigInts(_: string, value: unknown, context: { source: string; } | undefined): unknown;