Skip to content

Commit

Permalink
fix: added missing stream method to ts spec (#697)
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudinary-pkoniu authored Oct 7, 2024
1 parent 933d926 commit f08a3f7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions types/cloudinary_ts_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<any>
cloudinary.v2.provisioning.account.sub_accounts(
Expand Down
2 changes: 2 additions & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<UploadApiResponse>;

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

0 comments on commit f08a3f7

Please sign in to comment.