This file should add analytics to window, but TypeScript rejects it. Fix it, and declare a global __APP_VERSION__ too.
A script tag on the page sets window.analytics, and the bundler replaces __APP_VERSION__ with a version string at build time. src/main.ts uses both. Make src/globals.d.ts declare them, with __APP_VERSION__ as a global constant, not a property of window.
window.analytics.track("signup", { plan: "pro" });
console.log(__APP_VERSION__);
declare global { interface Window { analytics: { track(event: string, data?: Record<string, string | number>): void; }; }}The answer
Write it yourself first. Then compare it with a reference solution and the checks it passes.
Checking your sign-in…