UNPKG

@ginden/blinkstick-v2

Version:
9 lines 364 B
import { Buffer } from 'node:buffer'; /** * @summary Coerce a number array, Buffer, or Uint8Array to a Buffer. * @remarks Already existing Buffers are returned as-is. * Uint8Arrays are converted to Buffers without copying. * @param data */ export declare function asBuffer(data: number[] | Buffer | Uint8Array): Buffer; //# sourceMappingURL=as-buffer.d.ts.map