Not sure exactly how to handle this one, but I feel like this shouldn't be reported. The empty export is necessary for the TS compiler to merge types with the base global.Window interface, though I couldn't tell you much more than that. (reference: https://bobbyhadz.com/blog/typescript-extend-window)
declare global {
interface Window {
analytics: import("@segment/analytics-next").Analytics;
}
}
export {}; // error: Expected export to appear at end of file
Not sure exactly how to handle this one, but I feel like this shouldn't be reported. The empty export is necessary for the TS compiler to merge types with the base
global.Window
interface, though I couldn't tell you much more than that. (reference: https://bobbyhadz.com/blog/typescript-extend-window)