From aa3d82dec2cc9ba9e0ad001b9d69018ead037cce Mon Sep 17 00:00:00 2001 From: Araragi Date: Thu, 22 Dec 2022 13:53:49 -0500 Subject: [PATCH] Fixing more errors --- src/gif.ts | 3 ++- src/png.ts | 2 +- src/websites/index.ts | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gif.ts b/src/gif.ts index 80c1276..9c7edfd 100644 --- a/src/gif.ts +++ b/src/gif.ts @@ -1,5 +1,6 @@ import { Buffer } from "buffer"; -import type { EmbeddedFile, ImageProcessor } from "./main"; +import type { EmbeddedFile } from "./main"; +import type { ImageProcessor } from "./processor.worker"; import { BufferWriteStream } from "./png"; import { decodeCoom3Payload, uploadFiles } from "./utils"; diff --git a/src/png.ts b/src/png.ts index 07f7b6f..3d11f57 100644 --- a/src/png.ts +++ b/src/png.ts @@ -1,6 +1,6 @@ import { buf } from "crc-32"; import { Buffer } from "buffer"; -import type { ImageProcessor } from "./main"; +import type { ImageProcessor } from "./processor.worker"; export type PNGChunk = [ string, // name diff --git a/src/websites/index.ts b/src/websites/index.ts index d8b7740..948c43b 100644 --- a/src/websites/index.ts +++ b/src/websites/index.ts @@ -100,7 +100,7 @@ export const FoolFuuka: QueryProcessor = { export const KChan: QueryProcessor = { getFileThumbnail: post => post.querySelector('figure.uploadCell')!, getPost: (post) => post.querySelector('.innerPost')!, - postsWithFiles: (h) => [...(h || document).querySelectorAll('.postCell:has(figure)')], + postsWithFiles: (h) => [...(h || document).querySelectorAll('.postCell:has(figure)')] as HTMLElement[], settingsHost: () => document.getElementById("navOptionsSpanThread") as any, catalogControlHost: () => document.getElementById("divTools") as HTMLDivElement, getImageLink: async function* (post: HTMLElement) {