Skip to content

Commit

Permalink
fix: change interface declaration to class
Browse files Browse the repository at this point in the history
  • Loading branch information
kmannislands committed Sep 14, 2022
1 parent 141fbff commit 901a028
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;
}

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 901a028

Please sign in to comment.