Skip to content

Commit

Permalink
Merge pull request #207 from kmannislands/187-add-bytestream
Browse files Browse the repository at this point in the history
Type fix: change interface declaration to class for `ByteStream`
  • Loading branch information
yagni authored Sep 19, 2022
2 parents 3df32a8 + 901a028 commit 04fcbbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@ declare module 'dicom-parser' {
attributeTag: (tag: string) => string | undefined;
}

export interface ByteStream {
export class ByteStream {
byteArray: ByteArray;
byteArrayParser: ByteArrayParser;
position: number;
warnings: string[];

new (byteArrayParser: ByteArrayParser, byteArray: ByteArray, position: number): ByteStream;
constructor(byteArrayParser: ByteArrayParser, byteArray: ByteArray, position: number): ByteStream;
seek: (offset: number) => void;
readByteStream: (numBytes: number) => ByteStream;
readUint16: () => number;
Expand Down

0 comments on commit 04fcbbe

Please sign in to comment.