UNPKG

@ginden/blinkstick-v2

Version:
9 lines 346 B
import { Buffer } from 'node:buffer'; /** * Coerce a number array, Buffer, or Uint8Array to a Buffer. * 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