Skip to content

Commit

Permalink
Add missing types for sign-request (#398)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-tolosa authored Jun 8, 2020
1 parent af2cb7f commit da81a4c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions types/cloudinary_ts_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -765,6 +765,12 @@ cloudinary.v2.utils.download_zip_url(
}
);

// $ExpectType { [key: string]: any; signature: string; api_key: string; }
cloudinary.v2.utils.sign_request(
{
}
);

// $ExpectType Promise<void>
cloudinary.v2.search
.expression('cat -tags:kitten')
Expand Down
2 changes: 2 additions & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,8 @@ declare module 'cloudinary' {

namespace utils {

function sign_request(params_to_sign: object, options?: ConfigAndUrlOptions): { signature: string; api_key: string; [key:string]:any};

function api_sign_request(params_to_sign: object, api_secret: string): string;

function api_url(action?: string, options?: ConfigAndUrlOptions): Promise<any>;
Expand Down

0 comments on commit da81a4c

Please sign in to comment.