diff --git a/types/cloudinary_ts_spec.ts b/types/cloudinary_ts_spec.ts index 5afb1beb..0fdf505b 100644 --- a/types/cloudinary_ts_spec.ts +++ b/types/cloudinary_ts_spec.ts @@ -986,6 +986,11 @@ cloudinary.v2.uploader.upload_stream( console.log(result); }); +// $ExpectType UploadStream +cloudinary.v2.uploader.upload_chunked_stream({template: "https://www.example.com/images/"}); + +// $ExpectType UploadStream +cloudinary.v2.uploader.upload_large_stream({template: "https://www.example.com/images/"}); // $ExpectType Promise cloudinary.v2.provisioning.account.sub_accounts( diff --git a/types/index.d.ts b/types/index.d.ts index 5b39d8ce..603e4957 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1397,6 +1397,8 @@ declare module 'cloudinary' { function upload_chunked_stream(options?: UploadApiOptions, callback?: UploadResponseCallback): UploadStream; + function upload_large_stream(options?: UploadApiOptions, callback?: UploadResponseCallback): UploadStream; + function upload_large(path: string, options?: UploadApiOptions, callback?: UploadResponseCallback): Promise; function upload_large(path: string, callback?: UploadResponseCallback): Promise;