Skip to content

Commit da81a4c

Browse files
Add missing types for sign-request (#398)
1 parent af2cb7f commit da81a4c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

types/cloudinary_ts_spec.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -765,6 +765,12 @@ cloudinary.v2.utils.download_zip_url(
765765
}
766766
);
767767

768+
// $ExpectType { [key: string]: any; signature: string; api_key: string; }
769+
cloudinary.v2.utils.sign_request(
770+
{
771+
}
772+
);
773+
768774
// $ExpectType Promise<void>
769775
cloudinary.v2.search
770776
.expression('cat -tags:kitten')

types/index.d.ts

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

698698
namespace utils {
699699

700+
function sign_request(params_to_sign: object, options?: ConfigAndUrlOptions): { signature: string; api_key: string; [key:string]:any};
701+
700702
function api_sign_request(params_to_sign: object, api_secret: string): string;
701703

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

0 commit comments

Comments
 (0)