UNPKG

398 BTypeScriptView Raw
1/**
2 * Helper to get the document object. Note that in popup window cases, document
3 * might be the wrong document, which is why we look at ownerDocument for the
4 * truth. Also note that the SSR flag is used to test ssr scenarios even if
5 * document is defined (from JSDOM for example.)
6 *
7 * @public
8 */
9export declare function getDocument(rootElement?: HTMLElement | null): Document | undefined;