global.d.ts
declare global {
export interface Window {
...
}
export {}
I realized that export {} has an effect on redefining window module.
I saw a brief explanation that export {} makes the d.ts file a module. However, I didn't understand how d.ts became a module would affect the typescript. Is there any document that I can refer to?