typescript property does not exist on window code example
Example: Property 'editor' does not exist on type 'Window & typeof globalThis'.
declare global {
interface Window { MyNamespace: any; }
}
window.MyNamespace = window.MyNamespace || {};
declare global {
interface Window { MyNamespace: any; }
}
window.MyNamespace = window.MyNamespace || {};