UNPKG

@tragedy-labs/sprite

Version:

A TypeScript driver for ArcadeDB

14 lines (13 loc) 499 B
/** * Return the JSON from a REST Response from ArcadeDB. */ declare class JsonResponse { /** * Await the response from the server, and handle it as JSON. * @param response The `fetch` {@link https://developer.mozilla.org/en-US/docs/Web/API/Response `Response`} object. * @returns The `result` property from the JSON supplied from ArcadeDB. * @throws If ArcadeDB returns an exception. */ static parse<T>(response: Response): Promise<T>; } export { JsonResponse };