Skip to content

Commit 1153e75

Browse files
Merge pull request #576 from cloudinary/add-resource_type-to-upload-params
fix: added resource_type parameter on upload
2 parents d343935 + 00b235a commit 1153e75

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

types/index.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,7 @@ declare module 'cloudinary' {
508508
proxy?: string;
509509
public_id?: string;
510510
quality_analysis?: boolean;
511+
resource_type?: "image" | "video" | "raw" | "auto";
511512
responsive_breakpoints?: Record<any,any>;
512513
return_delete_token?: boolean
513514
timestamp?: number;
@@ -580,7 +581,7 @@ declare module 'cloudinary' {
580581
width: number;
581582
height: number;
582583
format: string;
583-
resource_type: string;
584+
resource_type?: "image" | "video" | "raw" | "auto";
584585
created_at: string;
585586
tags: Array<string>;
586587
pages: number;

0 commit comments

Comments
 (0)