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