Here is my code snippet from window.ts
import Vue from 'vue'
interface BrowserWindow extends Window {
app: Vue
}
const browserWindow = window as BrowserWindow
export default browserWindow
Encountering a compilation error
Error message: TS2352 - The conversion of type 'Window & typeof globalThis' to 'BrowserWindow'
appears to be problematic due to insufficient overlap between the two types. Consider
converting the expression to 'unknown' first.
Property 'app' is missing in type 'Window & typeof globalThis' but required in type 'BrowserWindow'.