Skip to content

Commit

Permalink
update(interfaces): possbile additional data in file object an ImageT…
Browse files Browse the repository at this point in the history
…oolData and UploadResponseFormat
  • Loading branch information
dependentmadani committed Jul 6, 2024
1 parent a5f7ad1 commit d265261
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export interface UploadResponseFormat {
* The URL of the uploaded image.
*/
url: string;
};
} & Record<string, any>;
}

/**
Expand Down Expand Up @@ -83,10 +83,14 @@ export type ImageToolData<Actions = {}> = {

/**
* Object containing the URL of the image file.
* Also can contain any additional data.
*/
file: {
/**
* The URL of the image.
*/
url: string;
};
} & Record<string, any>;
} & (Actions extends Record<string, boolean> ? Actions : {});

/**
Expand Down

0 comments on commit d265261

Please sign in to comment.