UNPKG

@nktkas/hyperliquid

Version:

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

22 lines (21 loc) 776 B
/// <amd-module name="file:///home/runner/work/hyperliquid/hyperliquid/dist/.dts-tmp/_deps/jsr.io/@std/bytes/1.0.6/concat.ts" /> import type { Uint8Array_ } from "./_types.js"; export type { Uint8Array_ }; /** * Concatenate an array of byte slices into a single slice. * * @param buffers Array of byte slices to concatenate. * @returns A new byte slice containing all the input slices concatenated. * * @example Basic usage * ```ts * import { concat } from "@std/bytes/concat"; * import { assertEquals } from "@std/assert"; * * const a = new Uint8Array([0, 1, 2]); * const b = new Uint8Array([3, 4, 5]); * * assertEquals(concat([a, b]), new Uint8Array([0, 1, 2, 3, 4, 5])); * ``` */ export declare function concat(buffers: readonly Uint8Array[]): Uint8Array_;