From 99fb1d5373faa5c4d06ecac88f626d615c31ebf3 Mon Sep 17 00:00:00 2001 From: Lorenzo Vaccarecci Date: Sat, 6 Sep 2025 22:54:03 +0200 Subject: [PATCH] Update UploadApiErrorResponse type and add .gitattributes Refactored the UploadApiErrorResponse interface to nest error details under an 'error' object for improved type accuracy. Added a .gitattributes file to enforce LF line endings across the repository. --- .gitattributes | 1 + types/index.d.ts | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..07764a78 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text eol=lf \ No newline at end of file diff --git a/types/index.d.ts b/types/index.d.ts index 20378969..0ec98b2c 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -663,9 +663,11 @@ declare module 'cloudinary' { } export interface UploadApiErrorResponse { - message: string; - name: string; - http_code: number; + error: { + message: string; + name: string; + http_code: number; + }; [futureKey: string]: any; }