Skip to content

Commit 901a028

Browse files
committed
fix: change interface declaration to class
1 parent 141fbff commit 901a028

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,13 @@ declare module 'dicom-parser' {
9595
attributeTag: (tag: string) => string;
9696
}
9797

98-
export interface ByteStream {
98+
export class ByteStream {
9999
byteArray: ByteArray;
100100
byteArrayParser: ByteArrayParser;
101101
position: number;
102102
warnings: string[];
103103

104-
new (byteArrayParser: ByteArrayParser, byteArray: ByteArray, position: number): ByteStream;
104+
constructor(byteArrayParser: ByteArrayParser, byteArray: ByteArray, position: number): ByteStream;
105105
seek: (offset: number) => void;
106106
readByteStream: (numBytes: number) => ByteStream;
107107
readUint16: () => number;

0 commit comments

Comments
 (0)