chore(ui): lint

This commit is contained in:
psychedelicious 2024-08-23 16:55:36 +10:00
parent bf8bef2f00
commit 60e0d17f34
5 changed files with 7 additions and 10 deletions

View File

@ -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;
}

View File

@ -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';

View File

@ -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';

View File

@ -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();

View File

@ -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':