Компиляция ошибка машинопись с Vue.js TS2352
Это мой window.ts
import Vue from 'vue'
interface BrowserWindow extends Window {
app: Vue
}
const browserWindow = window as BrowserWindow
export default browserWindow
Я постоянно получаю эту ошибку при компиляции
TS2352: Conversion of type 'Window & typeof globalThis' to type 'BrowserWindow' may
be a mistake because neither type sufficiently overlaps with the other. If this was intentional,
convert the expression to 'unknown' first.
Property 'app' is missing in type 'Window & typeof globalThis' but required in type 'BrowserWindow'.
+1
0 ответов
Посмотрите другие вопросы по меткам typescript vue.js webpack