fix(ui): CanvasPasteBack types

This commit is contained in:
psychedelicious 2024-02-26 22:27:58 +11:00 committed by Kent Keirsey
parent 2367f53367
commit 8f9e3ac795
2 changed files with 4 additions and 4 deletions

View File

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

View File

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