Fix TS errors
This commit is contained in:
@@ -9,7 +9,7 @@ export function defineTool<T = any, K extends string = string>(
|
||||
key: K,
|
||||
name: string,
|
||||
icon: () => JSX.Element,
|
||||
defaultSettings: () => T = () => null,
|
||||
defaultSettings: () => T = () => null as any,
|
||||
): DefinedTool<T, K> {
|
||||
const tool: DefinedTool<T, K> = {
|
||||
key,
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import ImageTracer from "imagetracerjs";
|
||||
import type { TracerOptions } from "./interface";
|
||||
import { last } from "lodash";
|
||||
import { VERSION } from "./constants";
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user