UNPKG

427 BTypeScriptView Raw
1/**
2 * Helper to get the window object. The helper will make sure to use a cached variable
3 * of "window", to avoid overhead and memory leaks in IE11. Note that in popup scenarios the
4 * window object won't match the "global" window object, and for these scenarios, you should
5 * pass in an element hosted within the popup.
6 *
7 * @public
8 */
9export declare function getWindow(rootElement?: Element | null): Window | undefined;