fix(ui): CanvasPasteBack types

This commit is contained in:
psychedelicious 2024-02-26 22:27:58 +11:00
parent 6c5be9e89c
commit 7b4ef5926d
2 changed files with 4 additions and 4 deletions

View File

@ -1,8 +1,8 @@
import { logger } from 'app/logging/logger';
import type { RootState } from 'app/store/store';
import type {
CanvasPasteBackInvocation,
CreateGradientMaskInvocation,
IAICanvasPasteBackInvocation,
ImageDTO,
ImageToLatentsInvocation,
NoiseInvocation,
@ -391,7 +391,7 @@ export const buildCanvasInpaintGraph = (
// Paste Back
graph.nodes[CANVAS_OUTPUT] = {
...(graph.nodes[CANVAS_OUTPUT] as IAICanvasPasteBackInvocation),
...(graph.nodes[CANVAS_OUTPUT] as CanvasPasteBackInvocation),
mask: canvasMaskImage,
};

View File

@ -1,8 +1,8 @@
import { logger } from 'app/logging/logger';
import type { RootState } from 'app/store/store';
import type {
CanvasPasteBackInvocation,
CreateGradientMaskInvocation,
IAICanvasPasteBackInvocation,
ImageDTO,
ImageToLatentsInvocation,
NoiseInvocation,
@ -401,7 +401,7 @@ export const buildCanvasSDXLInpaintGraph = (
// Paste Back
graph.nodes[CANVAS_OUTPUT] = {
...(graph.nodes[CANVAS_OUTPUT] as IAICanvasPasteBackInvocation),
...(graph.nodes[CANVAS_OUTPUT] as CanvasPasteBackInvocation),
mask: canvasMaskImage,
};