Installation
npm install --save @types/buffers
Summary
This package contains type definitions for buffers (https://github.com/substack/node-buffers).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/buffers.
interface BuffersStatics {
new(bufs?: Buffer[] | Buffers): Buffers;
(bufs?: Buffer[] | Buffers): Buffers;
prototype: Buffers;
}
interface Buffers {
buffers: Buffer[];
length: number;
push(...items: Buffer[]): number;
unshift(...items: Buffer[]): number;
slice(i?: number, j?: number): Buffer;
splice(i: number, howMany?: number, ...items: Buffer[]): Buffers;
copy(dst: Buffer, dstStart?: number, start?: number, end?: number): number;
get(i: number): any;
set(i: number, b: any): void;
indexOf(needle: string | Buffer, offset?: number): number;
toBuffer(): Buffer;
toString(encoding?: any, start?: number, end?: number): string;
}
declare var Buffers: BuffersStatics;
export = Buffers;
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: @types/node
Credits
These definitions were written by Robert Hencke.