Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

fix any

Roman Pominovafbe1cf28a8b
diff --git a/packages/react-sdk/src/components/component-type.ts b/packages/react-sdk/src/components/component-type.ts
index 5180e2955e..fb818337ce 100644
--- a/packages/react-sdk/src/components/component-type.ts
+++ b/packages/react-sdk/src/components/component-type.ts
@@ -1,13 +1,11 @@
import type { Style } from "../css";
import { z } from "zod";
+import React from "react";
+import { IconProps } from "@webstudio-is/icons";
export type WsComponentMeta<ComponentType> = {
Component: ComponentType;
-
- // @todo: can we do better than `any` here?
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
- Icon: any;
-
+ Icon: React.FunctionComponent<IconProps>;
defaultStyle?: Style;
canAcceptChildren: boolean;
// Should children of the component be editable?