fix: update uploadFile overload types

This commit is contained in:
Derrick Hammer 2023-06-25 23:39:22 -04:00
parent 06a8093786
commit 45fbc1b63d
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 3 additions and 3 deletions

View File

@ -282,18 +282,18 @@ export class Client {
); );
} }
async uploadFile(stream: Blob, size?: bigint); async uploadFile(stream: Blob, size?: bigint): Promise<string>;
async uploadFile( async uploadFile(
stream: ReadableStream, stream: ReadableStream,
hashStream: ReadableStream, hashStream: ReadableStream,
size: bigint, size: bigint,
); ): Promise<string>;
async uploadFile(stream: Uint8Array, size?: bigint); async uploadFile(stream: Uint8Array, size?: bigint);
async uploadFile( async uploadFile(
stream: NodeJS.ReadableStream, stream: NodeJS.ReadableStream,
hashStream: NodeJS.ReadableStream, hashStream: NodeJS.ReadableStream,
size?: bigint, size?: bigint,
); ): Promise<string>;
async uploadFile( async uploadFile(
stream: any, stream: any,
hashStream?: any, hashStream?: any,