UNPKG

@happy-dom/global-registrator

Version:
33 lines 894 B
import type { IOptionalBrowserSettings } from 'happy-dom'; /** * */ export default class GlobalRegistrator { #private; /** * Returns the registered state. * * @returns Registered state. */ static get isRegistered(): boolean; /** * Registers Happy DOM globally. * * @param [options] Options. * @param [options.width] Window width. Defaults to "1024". * @param [options.height] Window height. Defaults to "768". * @param [options.url] URL. * @param [options.settings] Settings. */ static register(options?: { width?: number; height?: number; url?: string; settings?: IOptionalBrowserSettings; }): void; /** * Closes the window and unregisters Happy DOM from being global. */ static unregister(): Promise<void>; } //# sourceMappingURL=GlobalRegistrator.d.ts.map