From 2e62d2d810bfd3dd1c227eaf604ee6ee9052f6e5 Mon Sep 17 00:00:00 2001 From: Terncode Date: Wed, 22 Apr 2026 11:04:42 +0200 Subject: [PATCH] Fix TS errors --- src/handler/tools.tsx | 2 +- src/svg-tracer.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/handler/tools.tsx b/src/handler/tools.tsx index f699bbb..c126213 100644 --- a/src/handler/tools.tsx +++ b/src/handler/tools.tsx @@ -9,7 +9,7 @@ export function defineTool( key: K, name: string, icon: () => JSX.Element, - defaultSettings: () => T = () => null, + defaultSettings: () => T = () => null as any, ): DefinedTool { const tool: DefinedTool = { key, diff --git a/src/svg-tracer.ts b/src/svg-tracer.ts index 8b60aa9..280bf6d 100644 --- a/src/svg-tracer.ts +++ b/src/svg-tracer.ts @@ -1,6 +1,5 @@ import ImageTracer from "imagetracerjs"; import type { TracerOptions } from "./interface"; -import { last } from "lodash"; import { VERSION } from "./constants";