UNPKG

@nktkas/hyperliquid

Version:

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

21 lines 655 B
import type { ValueType } from "./encode.js"; /** * Decode a value from the {@link https://msgpack.org/ | MessagePack} binary format. * * If the input is not in valid message pack format, an error will be thrown. * * @example Usage * ```ts * import { decode } from "@std/msgpack/decode"; * import { assertEquals } from "@std/assert"; * * const encoded = new Uint8Array([163, 72, 105, 33]); * * assertEquals(decode(encoded), "Hi!"); * ``` * * @param data MessagePack binary data. * @returns Decoded value from the MessagePack binary data. */ export declare function decode(data: Uint8Array): ValueType; //# sourceMappingURL=decode.d.ts.map