fix: update uploadFile overload types
This commit is contained in:
parent
06a8093786
commit
45fbc1b63d
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue