so I am trying to implement google analytics in my svelte-kit app. For that I need to insert a little script in the +layout.svelte file. As friends recommended me to switch from JS to TS I try to do it in TS, but I am still very noob.
So I declared this interface with the same name as the "window" object, which according to the ts-handbook is called an alias and should be picked up automatically, but it is not as you can see - my linter is screaming at me that "Property 'dataLayer' does not exist on type 'Window & typeof globalThis'.ts(2339)"
I really appreciate your help in this matter in order to fix this. Thank you!