From b1aaa6fd56e65c9155bb34526a55c067d7dee56f Mon Sep 17 00:00:00 2001 From: Erik Tiekstra Date: Fri, 25 Oct 2024 07:53:58 +0200 Subject: [PATCH] fix: removed @ts-expect-error --- rte/main.tsx | 5 ++--- rte/vite.config.ts | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/rte/main.tsx b/rte/main.tsx index 8c53411..0744970 100644 --- a/rte/main.tsx +++ b/rte/main.tsx @@ -1,17 +1,17 @@ -import React from "react" import ContentstackSDK from "@contentstack/app-sdk" +import React from "react" import { ImageElement } from "~/components/ImageElement" import { Icon } from "@contentstack/venus-components" import { openImageVault } from "~/utils/imagevault" -import type { Lang } from "~/types/lang" import type { ContentstackEmbeddedData, ContentstackPluginDefinition, ExtractedContentstackEmbeddedData, } from "~/types/contentstack" +import type { Lang } from "~/types/lang" function findThisPlugin(ext: ContentstackPluginDefinition) { return ext.type === "rte_plugin" && /imagevault/i.test(ext.title) @@ -180,7 +180,6 @@ async function init() { if (rte) { const savedSelection = rte?.selection?.get() ?? undefined - // @ts-expect-error: Added at runtime const appConfig = await rte.getConfig() // This is the configuration for this instance of the plugin. diff --git a/rte/vite.config.ts b/rte/vite.config.ts index 3311a43..3556ab7 100644 --- a/rte/vite.config.ts +++ b/rte/vite.config.ts @@ -1,7 +1,7 @@ import { resolve } from "path" import { defineConfig } from "vite" -import tsconfigPaths from "vite-tsconfig-paths" import { libInjectCss } from "vite-plugin-lib-inject-css" +import tsconfigPaths from "vite-tsconfig-paths" export default defineConfig({ plugins: [tsconfigPaths(), libInjectCss()], @@ -16,7 +16,6 @@ export default defineConfig({ entry: resolve(__dirname, "main.tsx"), name: "csiv", fileName: () => "csiv.js", - // @ts-expect-error: 'system' not valid by typings, but works with Rollup formats: ["system"], }, rollupOptions: {