When creating an app within the apps
folder, a global.d.ts
file is required with specific types defined like this:
interface Window{
analytics: any;
}
This file should be designed to be reusable and placed in the packages/types
directory for easy access across all apps.
After moving the Window type to packages/types
, I encountered issues when trying to import these global types into my apps.