diff --git a/src/types/types.ts b/src/types/types.ts index 2c77a2e7..f4b564f6 100644 --- a/src/types/types.ts +++ b/src/types/types.ts @@ -38,7 +38,7 @@ export interface ActionConfig { /** * UploadResponseFormat interface representing the response format expected from the backend on file uploading. */ -export interface UploadResponseFormat { +export interface UploadResponseFormat { /** * success - 1 for successful uploading, 0 for failure */ @@ -54,13 +54,13 @@ export interface UploadResponseFormat { * The URL of the uploaded image. */ url: string; - } & AdditionalData; + } & AdditionalFileData; } /** * ImageToolData type representing the input and output data format for the image tool, including optional custome actions. */ -export type ImageToolData = { +export type ImageToolData = { /** * Caption for the image. */ @@ -90,7 +90,7 @@ export type ImageToolData = { * The URL of the image. */ url: string; - } & AdditionalData; + } & AdditionalFileData; } & (Actions extends Record ? Actions : {}); /**