UNPKG

@nktkas/hyperliquid

Version:

Hyperliquid API SDK for all major JS runtimes, written in TypeScript.

16 lines (15 loc) 557 B
/** * Error detection for Explorer API responses. * @module */ /// <amd-module name="file:///home/runner/work/hyperliquid/hyperliquid/src/api/explorer/_methods/_base/_errors.ts" /> import { ApiRequestError } from "../../../_errors.js"; export { ApiRequestError }; /** * Throws {@linkcode ApiRequestError} if the response is an error; otherwise returns void. * * @param response Raw API response to validate. * * @throws {ApiRequestError} If the response contains an error. */ export declare function assertSuccessResponse(response: unknown): void;