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.

types

Oleg Isonen12ef705fc845
diff --git a/app/shared/text-editor/plugins/plugin-instance.tsx b/app/shared/text-editor/plugins/plugin-instance.tsx
index d13c3066d7..9fe7920411 100644
--- a/app/shared/text-editor/plugins/plugin-instance.tsx
+++ b/app/shared/text-editor/plugins/plugin-instance.tsx
@@ -11,7 +11,7 @@ import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext
import { useSubscribe } from "@webstudio-is/sdk";
import { primitives } from "../../canvas-components";
-const INSERT_INSTANCE_COMMAND: LexicalCommand<void> = createCommand();
+const INSERT_INSTANCE_COMMAND: LexicalCommand<Payload> = createCommand();
type Payload = {
component: keyof typeof primitives;
diff --git a/tsconfig.json b/tsconfig.json
index b1cd4c5f0d..749e4b959e 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -1,11 +1,5 @@
{
- "include": [
- "remix.env.d.ts",
- "**/*.ts",
- "**/*.tsx",
- "app/shared/text-editor/text-editor.js",
- "app/shared/text-editor/plugins/test.js"
- ],
+ "include": ["remix.env.d.ts", "**/*.ts", "**/*.tsx"],
"compilerOptions": {
"lib": ["DOM", "DOM.Iterable", "ES2019"],
"isolatedModules": true,