Skip to content

Commit

Permalink
Re-add BufferObj equals
Browse files Browse the repository at this point in the history
  • Loading branch information
jacogr committed Aug 16, 2023
1 parent 9a0e376 commit 01b9df7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/util/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ export type HexString = `0x${string}`;
// Caveat: the references still do sneak in in the d.ts files, specifically
// inside u8a/toBuffer & is/buffer (but not in compiled outputs)
export interface BufferObj extends Uint8Array {
// Possibly used externally via type imports
equals: (otherBuffer: Uint8Array) => boolean;
// As used in is/buffer
readDoubleLE: (offset?: number) => number;
}
Expand Down

0 comments on commit 01b9df7

Please sign in to comment.