From 45fbc1b63d2c19e186d6f21b022fee62be61866a Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 25 Jun 2023 23:39:22 -0400 Subject: [PATCH] fix: update uploadFile overload types --- src/client.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client.ts b/src/client.ts index 8ea514a..716f1c3 100644 --- a/src/client.ts +++ b/src/client.ts @@ -282,18 +282,18 @@ export class Client { ); } - async uploadFile(stream: Blob, size?: bigint); + async uploadFile(stream: Blob, size?: bigint): Promise; async uploadFile( stream: ReadableStream, hashStream: ReadableStream, size: bigint, - ); + ): Promise; async uploadFile(stream: Uint8Array, size?: bigint); async uploadFile( stream: NodeJS.ReadableStream, hashStream: NodeJS.ReadableStream, size?: bigint, - ); + ): Promise; async uploadFile( stream: any, hashStream?: any,