mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
chore(ui): lint
This commit is contained in:
parent
bf8bef2f00
commit
60e0d17f34
@ -1,4 +1,4 @@
|
||||
import type { SerializableObject, SerializableObject } from 'common/types';
|
||||
import type { SerializableObject } from 'common/types';
|
||||
import type { CanvasLayerAdapter } from 'features/controlLayers/konva/CanvasLayerAdapter';
|
||||
import type { CanvasManager } from 'features/controlLayers/konva/CanvasManager';
|
||||
import { getPrefixedId } from 'features/controlLayers/konva/util';
|
||||
@ -7,8 +7,7 @@ import { IMAGE_FILTERS, imageDTOToImageObject } from 'features/controlLayers/sto
|
||||
import { atom } from 'nanostores';
|
||||
import type { Logger } from 'roarr';
|
||||
import { getImageDTO } from 'services/api/endpoints/images';
|
||||
import type { BatchConfig, ImageDTO } from 'services/api/types';
|
||||
import type { InvocationCompleteEvent } from 'services/events/types';
|
||||
import type { BatchConfig, ImageDTO, S } from 'services/api/types';
|
||||
import { assert } from 'tsafe';
|
||||
|
||||
const TYPE = 'entity_filter_preview';
|
||||
@ -63,7 +62,7 @@ export class CanvasFilterModule {
|
||||
const batch = this.buildBatchConfig(imageDTO, config, nodeId);
|
||||
|
||||
// Listen for the filter processing completion event
|
||||
const listener = async (event: InvocationCompleteEvent) => {
|
||||
const listener = async (event: S['InvocationCompleteEvent']) => {
|
||||
if (event.origin !== this.id || event.invocation_source_id !== nodeId) {
|
||||
return;
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
import type { SerializableObject, SerializableObject } from 'common/types';
|
||||
import type { SerializableObject } from 'common/types';
|
||||
import { deepClone } from 'common/util/deepClone';
|
||||
import type { CanvasManager } from 'features/controlLayers/konva/CanvasManager';
|
||||
import { CanvasObjectRenderer } from 'features/controlLayers/konva/CanvasObjectRenderer';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import type { SerializableObject, SerializableObject } from 'common/types';
|
||||
import type { SerializableObject } from 'common/types';
|
||||
import { deepClone } from 'common/util/deepClone';
|
||||
import type { CanvasManager } from 'features/controlLayers/konva/CanvasManager';
|
||||
import { CanvasObjectRenderer } from 'features/controlLayers/konva/CanvasObjectRenderer';
|
||||
|
@ -5,7 +5,7 @@ import type { CanvasPreviewModule } from 'features/controlLayers/konva/CanvasPre
|
||||
import { getPrefixedId, loadImage } from 'features/controlLayers/konva/util';
|
||||
import Konva from 'konva';
|
||||
import type { Logger } from 'roarr';
|
||||
import type { InvocationDenoiseProgressEvent } from 'services/events/types';
|
||||
import type { S } from 'services/api/types';
|
||||
|
||||
export class CanvasProgressImageModule {
|
||||
readonly type = 'progress_image';
|
||||
@ -30,7 +30,7 @@ export class CanvasProgressImageModule {
|
||||
isError: boolean = false;
|
||||
imageElement: HTMLImageElement | null = null;
|
||||
|
||||
lastProgressEvent: InvocationDenoiseProgressEvent | null = null;
|
||||
lastProgressEvent: S['InvocationDenoiseProgressEvent'] | null = null;
|
||||
|
||||
mutex: Mutex = new Mutex();
|
||||
|
||||
|
@ -13,8 +13,6 @@ export const isValidDrop = (overData?: TypesafeDroppableData | null, activeData?
|
||||
}
|
||||
|
||||
switch (actionType) {
|
||||
case 'SET_CURRENT_IMAGE':
|
||||
case 'SET_CA_IMAGE':
|
||||
case 'SET_IPA_IMAGE':
|
||||
case 'SET_RG_IP_ADAPTER_IMAGE':
|
||||
case 'ADD_RASTER_LAYER_FROM_IMAGE':
|
||||
|
Loading…
Reference in New Issue
Block a user