From 901a0284e2fc032769b77c867648e10881450b1c Mon Sep 17 00:00:00 2001 From: Kieran Mann Date: Wed, 14 Sep 2022 13:50:47 -0700 Subject: [PATCH] fix: change interface declaration to class --- index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index c1c93a7..d3e74a8 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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;