rename resultImg -> resultImage
This commit is contained in:
parent
56b9e8bf50
commit
c3e972eb11
@ -128,11 +128,11 @@ function App() {
|
|||||||
async function doUpdate() {
|
async function doUpdate() {
|
||||||
const updatedHistory = [...history, generatedCode, updateInstruction];
|
const updatedHistory = [...history, generatedCode, updateInstruction];
|
||||||
if (isImgCompare) {
|
if (isImgCompare) {
|
||||||
const resultImg = await takeScreenshot();
|
const resultImage = await takeScreenshot();
|
||||||
doGenerateCode({
|
doGenerateCode({
|
||||||
generationType: "update",
|
generationType: "update",
|
||||||
image: referenceImages[0],
|
image: referenceImages[0],
|
||||||
resultImg: resultImg,
|
resultImage: resultImage,
|
||||||
history: updatedHistory,
|
history: updatedHistory,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -10,7 +10,7 @@ const STOP_MESSAGE = "Code generation stopped";
|
|||||||
export interface CodeGenerationParams {
|
export interface CodeGenerationParams {
|
||||||
generationType: "create" | "update";
|
generationType: "create" | "update";
|
||||||
image: string;
|
image: string;
|
||||||
resultImg?: string;
|
resultImage?: string;
|
||||||
history?: string[];
|
history?: string[];
|
||||||
// isImageGenerationEnabled: boolean; // TODO: Merge with Settings type in types.ts
|
// isImageGenerationEnabled: boolean; // TODO: Merge with Settings type in types.ts
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user