fix: removed @ts-expect-error

This commit is contained in:
Erik Tiekstra
2024-10-25 07:53:58 +02:00
parent 0c813d1eaf
commit b1aaa6fd56
2 changed files with 3 additions and 5 deletions

View File

@@ -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.

View File

@@ -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: {