actually add the new public methods to the interfaces

This commit is contained in:
Holly Stubbs 2023-11-07 00:33:28 +00:00
parent c1e43e2937
commit b7a482d1f2
Signed by: tgpholly
GPG Key ID: B8583C4B7D18119E
3 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "bufferstuff",
"version": "1.4.1",
"version": "1.4.2",
"description": "A set of utility classes for reading and writing binary data in NodeJS and the browser",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",

View File

@ -2,6 +2,8 @@
// Check LICENSE in repository root for more information.
export interface IReader {
readOffset: number,
length: number,
readBuffer(bytes:number): Buffer,
readUint8Array(bytes:number): Uint8Array,
readByte(): number,

View File

@ -2,6 +2,8 @@
// Check LICENSE in repository root for more information.
export interface IWriter {
writeOffset: number,
length: number,
toBuffer(): Buffer,
toString(): string,
writeBuffer(buffer:Buffer): IWriter,