rename resultImg -> resultImage

This commit is contained in:
Abi Raja 2023-11-23 11:04:23 -05:00
parent 56b9e8bf50
commit c3e972eb11
2 changed files with 3 additions and 3 deletions

View File

@ -128,11 +128,11 @@ function App() {
async function doUpdate() {
const updatedHistory = [...history, generatedCode, updateInstruction];
if (isImgCompare) {
const resultImg = await takeScreenshot();
const resultImage = await takeScreenshot();
doGenerateCode({
generationType: "update",
image: referenceImages[0],
resultImg: resultImg,
resultImage: resultImage,
history: updatedHistory,
});
} else {

View File

@ -10,7 +10,7 @@ const STOP_MESSAGE = "Code generation stopped";
export interface CodeGenerationParams {
generationType: "create" | "update";
image: string;
resultImg?: string;
resultImage?: string;
history?: string[];
// isImageGenerationEnabled: boolean; // TODO: Merge with Settings type in types.ts
}