Skip to content

Commit f08a3f7

Browse files
fix: added missing stream method to ts spec (#697)
1 parent 933d926 commit f08a3f7

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

types/cloudinary_ts_spec.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -986,6 +986,11 @@ cloudinary.v2.uploader.upload_stream(
986986
console.log(result);
987987
});
988988

989+
// $ExpectType UploadStream
990+
cloudinary.v2.uploader.upload_chunked_stream({template: "https://www.example.com/images/"});
991+
992+
// $ExpectType UploadStream
993+
cloudinary.v2.uploader.upload_large_stream({template: "https://www.example.com/images/"});
989994

990995
// $ExpectType Promise<any>
991996
cloudinary.v2.provisioning.account.sub_accounts(

types/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1397,6 +1397,8 @@ declare module 'cloudinary' {
13971397

13981398
function upload_chunked_stream(options?: UploadApiOptions, callback?: UploadResponseCallback): UploadStream;
13991399

1400+
function upload_large_stream(options?: UploadApiOptions, callback?: UploadResponseCallback): UploadStream;
1401+
14001402
function upload_large(path: string, options?: UploadApiOptions, callback?: UploadResponseCallback): Promise<UploadApiResponse>;
14011403

14021404
function upload_large(path: string, callback?: UploadResponseCallback): Promise<UploadApiResponse>;

0 commit comments

Comments
 (0)